Skip to content

Commit 5f49561

Browse files
Pranesh-Raghuravibits
authored andcommitted
fix(box): add box_file_representations_get to box.ts data source
1 parent ca68510 commit 5f49561

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

  • src/data/agent-connectors

src/data/agent-connectors/box.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,24 @@ export const tools: Tool[] = [
389389
description: `Retrieves all tasks associated with a file.`,
390390
params: [{ name: 'file_id', type: 'string', required: true, description: `ID of the file.` }],
391391
},
392+
{
393+
name: 'box_file_representations_get',
394+
description: `Retrieves available representations for a file, such as PDFs, extracted text, or image thumbnails. Box generates representations on demand — poll until status is success before downloading.`,
395+
params: [
396+
{
397+
name: 'file_id',
398+
type: 'string',
399+
required: true,
400+
description: `ID of the file. Get it from box_folder_items_list.`,
401+
},
402+
{
403+
name: 'x_rep_hints',
404+
type: 'string',
405+
required: true,
406+
description: `Representation formats to request, e.g. [pdf][extracted_text] or [jpg?dimensions=320x320]. Multiple formats can be combined.`,
407+
},
408+
],
409+
},
392410
{
393411
name: 'box_file_thumbnail_get',
394412
description: `Retrieves a thumbnail image for a file.`,

0 commit comments

Comments
 (0)