Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(box): rename items output to entries for list_folder_items
Rename the output field from "items" to "entries" to match Box API
naming and avoid collision with JSON schema "items" keyword that
prevented the docs generator from rendering the nested array structure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  • Loading branch information
waleedlatif1 and claude committed Mar 19, 2026
commit 3b6900236f000102034b003007233d537c61c23a
7 changes: 7 additions & 0 deletions apps/docs/content/docs/en/tools/box.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ List files and folders in a Box folder

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `entries` | array | List of items in the folder |
| ↳ `type` | string | Item type \(file, folder, web_link\) |
| ↳ `id` | string | Item ID |
| ↳ `name` | string | Item name |
| ↳ `size` | number | Item size in bytes |
| ↳ `createdAt` | string | Creation timestamp |
| ↳ `modifiedAt` | string | Last modified timestamp |
| `totalCount` | number | Total number of items in the folder |
| `offset` | number | Current pagination offset |
| `limit` | number | Current pagination limit |
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/blocks/blocks/box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export const BoxBlock: BlockConfig = {
commentCount: 'number',
file: 'file',
content: 'string',
items: 'json',
entries: 'json',
totalCount: 'number',
offset: 'number',
limit: 'number',
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/tools/box/list_folder_items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const boxListFolderItemsTool: ToolConfig<BoxListFolderItemsParams, BoxFol
return {
success: true,
output: {
items: (data.entries ?? []).map((item: Record<string, unknown>) => ({
entries: (data.entries ?? []).map((item: Record<string, unknown>) => ({
type: item.type ?? '',
id: item.id ?? '',
name: item.name ?? '',
Expand Down
22 changes: 10 additions & 12 deletions apps/sim/tools/box/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export interface BoxFileInfoResponse extends ToolResponse {

export interface BoxFolderItemsResponse extends ToolResponse {
output: {
items: Array<Record<string, unknown>>
entries: Array<Record<string, unknown>>
totalCount: number
offset: number
limit: number
Expand Down Expand Up @@ -186,22 +186,20 @@ export const FILE_OUTPUT_PROPERTIES = {
commentCount: { type: 'number', description: 'Number of comments', optional: true },
} as const satisfies Record<string, OutputProperty>

export const FOLDER_ITEM_OUTPUT_PROPERTIES = {
type: { type: 'string', description: 'Item type (file, folder, web_link)' },
id: { type: 'string', description: 'Item ID' },
name: { type: 'string', description: 'Item name' },
size: { type: 'number', description: 'Item size in bytes', optional: true },
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
modifiedAt: { type: 'string', description: 'Last modified timestamp', optional: true },
} as const satisfies Record<string, OutputProperty>

export const FOLDER_ITEMS_OUTPUT_PROPERTIES = {
items: {
entries: {
type: 'array',
description: 'List of items in the folder',
items: {
type: 'object',
properties: FOLDER_ITEM_OUTPUT_PROPERTIES,
properties: {
type: { type: 'string', description: 'Item type (file, folder, web_link)' },
id: { type: 'string', description: 'Item ID' },
name: { type: 'string', description: 'Item name' },
size: { type: 'number', description: 'Item size in bytes', optional: true },
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
modifiedAt: { type: 'string', description: 'Last modified timestamp', optional: true },
},
},
},
totalCount: { type: 'number', description: 'Total number of items in the folder' },
Expand Down