Skip to content

Commit c46dd53

Browse files
author
aadamgough
committed
fixed output schema
1 parent 2ca6f6e commit c46dd53

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

apps/sim/tools/google_drive/download.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ export const downloadTool: ToolConfig<GoogleDriveToolParams, GoogleDriveDownload
5656
type: 'boolean',
5757
required: false,
5858
visibility: 'user-or-llm',
59-
description: 'Whether to include revision history in the metadata (default: true)',
59+
description:
60+
'Whether to include revision history in the metadata (default: true, returns first 100 revisions)',
6061
},
6162
},
6263

@@ -222,15 +223,12 @@ export const downloadTool: ToolConfig<GoogleDriveToolParams, GoogleDriveDownload
222223
outputs: {
223224
file: {
224225
type: 'object',
225-
description: 'Downloaded file stored in execution files',
226+
description: 'Downloaded file data',
226227
properties: {
227-
id: { type: 'string', description: 'Unique file identifier' },
228228
name: { type: 'string', description: 'File name' },
229+
mimeType: { type: 'string', description: 'MIME type of the file' },
230+
data: { type: 'string', description: 'File content as Buffer' },
229231
size: { type: 'number', description: 'File size in bytes' },
230-
type: { type: 'string', description: 'MIME type of the file' },
231-
url: { type: 'string', description: 'Signed URL to access the file' },
232-
key: { type: 'string', description: 'Storage key for the file' },
233-
context: { type: 'string', description: 'Context where file is stored' },
234232
},
235233
},
236234
metadata: {
@@ -307,7 +305,10 @@ export const downloadTool: ToolConfig<GoogleDriveToolParams, GoogleDriveDownload
307305
contentRestrictions: { type: 'json', description: 'Content restrictions' },
308306
linkShareMetadata: { type: 'json', description: 'Link share metadata' },
309307
// Revisions
310-
revisions: { type: 'json', description: 'File revision history' },
308+
revisions: {
309+
type: 'json',
310+
description: 'File revision history (first 100 revisions only)',
311+
},
311312
},
312313
},
313314
},

apps/sim/tools/google_drive/get_content.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export const getContentTool: ToolConfig<GoogleDriveToolParams, GoogleDriveGetCon
5050
type: 'boolean',
5151
required: false,
5252
visibility: 'user-or-llm',
53-
description: 'Whether to include revision history in the metadata (default: true)',
53+
description:
54+
'Whether to include revision history in the metadata (default: true, returns first 100 revisions)',
5455
},
5556
},
5657

@@ -279,7 +280,10 @@ export const getContentTool: ToolConfig<GoogleDriveToolParams, GoogleDriveGetCon
279280
contentRestrictions: { type: 'json', description: 'Content restrictions' },
280281
linkShareMetadata: { type: 'json', description: 'Link share metadata' },
281282
// Revisions
282-
revisions: { type: 'json', description: 'File revision history' },
283+
revisions: {
284+
type: 'json',
285+
description: 'File revision history (first 100 revisions only)',
286+
},
283287
},
284288
},
285289
},

0 commit comments

Comments
 (0)