From d13eeccbbb2c718a9246d9a6000eb10536c5cac8 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 22 Apr 2025 21:20:37 -0700 Subject: [PATCH] fix(docs): added missing google tools descriptions --- docs/content/docs/tools/google_docs.mdx | 9 +++++++++ docs/content/docs/tools/google_drive.mdx | 12 ++++++++++++ docs/content/docs/tools/google_sheets.mdx | 15 +++++++++++++++ sim/tools/google_docs/create.ts | 8 ++++---- sim/tools/google_docs/read.ts | 4 ++-- sim/tools/google_docs/write.ts | 6 +++--- sim/tools/google_drive/download.ts | 4 ++-- sim/tools/google_drive/export.ts | 6 +++--- sim/tools/google_drive/list.ts | 10 +++++----- sim/tools/google_drive/upload.ts | 10 +++++----- sim/tools/google_sheets/read.ts | 6 +++--- sim/tools/google_sheets/update.ts | 12 ++++++------ sim/tools/google_sheets/write.ts | 12 ++++++------ 13 files changed, 75 insertions(+), 39 deletions(-) diff --git a/docs/content/docs/tools/google_docs.mdx b/docs/content/docs/tools/google_docs.mdx index b7cd3698b..fc526e183 100644 --- a/docs/content/docs/tools/google_docs.mdx +++ b/docs/content/docs/tools/google_docs.mdx @@ -59,6 +59,8 @@ Read content from a Google Docs document | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Docs API | +| `documentId` | string | Yes | The ID of the document to read | #### Output @@ -74,6 +76,9 @@ Write or update content in a Google Docs document | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Docs API | +| `documentId` | string | Yes | The ID of the document to write to | +| `content` | string | Yes | The content to write to the document | #### Output @@ -89,6 +94,10 @@ Create a new Google Docs document | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Docs API | +| `title` | string | Yes | The title of the document to create | +| `content` | string | No | The content of the document to create | +| `folderId` | string | No | The ID of the folder to create the document in | #### Output diff --git a/docs/content/docs/tools/google_drive.mdx b/docs/content/docs/tools/google_drive.mdx index 704d3d0b4..55cb6a308 100644 --- a/docs/content/docs/tools/google_drive.mdx +++ b/docs/content/docs/tools/google_drive.mdx @@ -75,6 +75,11 @@ Upload a file to Google Drive | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Drive API | +| `fileName` | string | Yes | The name of the file to upload | +| `content` | string | Yes | The content of the file to upload | +| `mimeType` | string | No | The MIME type of the file to upload | +| `folderId` | string | No | The ID of the folder to upload the file to | #### Output @@ -98,6 +103,8 @@ Download a file from Google Drive | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Drive API | +| `fileId` | string | Yes | The ID of the file to download | #### Output @@ -121,6 +128,11 @@ List files and folders in Google Drive | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Drive API | +| `folderId` | string | No | The ID of the folder to list files from | +| `query` | string | No | A query to filter the files | +| `pageSize` | number | No | The number of files to return | +| `pageToken` | string | No | The page token to use for pagination | #### Output diff --git a/docs/content/docs/tools/google_sheets.mdx b/docs/content/docs/tools/google_sheets.mdx index 985194178..4d79ed690 100644 --- a/docs/content/docs/tools/google_sheets.mdx +++ b/docs/content/docs/tools/google_sheets.mdx @@ -62,6 +62,9 @@ Read data from a Google Sheets spreadsheet | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Sheets API | +| `spreadsheetId` | string | Yes | The ID of the spreadsheet to read from | +| `range` | string | No | The range of cells to read from | #### Output @@ -77,6 +80,12 @@ Write data to a Google Sheets spreadsheet | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Sheets API | +| `spreadsheetId` | string | Yes | The ID of the spreadsheet to write to | +| `range` | string | No | The range of cells to write to | +| `values` | array | Yes | The data to write to the spreadsheet | +| `valueInputOption` | string | No | The format of the data to write | +| `includeValuesInResponse` | boolean | No | Whether to include the written values in the response | #### Output @@ -98,6 +107,12 @@ Update data in a Google Sheets spreadsheet | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `accessToken` | string | Yes | The access token for the Google Sheets API | +| `spreadsheetId` | string | Yes | The ID of the spreadsheet to update | +| `range` | string | No | The range of cells to update | +| `values` | array | Yes | The data to update in the spreadsheet | +| `valueInputOption` | string | No | The format of the data to update | +| `includeValuesInResponse` | boolean | No | Whether to include the updated values in the response | #### Output diff --git a/sim/tools/google_docs/create.ts b/sim/tools/google_docs/create.ts index 6484b9053..a2700e9dd 100644 --- a/sim/tools/google_docs/create.ts +++ b/sim/tools/google_docs/create.ts @@ -15,10 +15,10 @@ export const createTool: ToolConfig { diff --git a/sim/tools/google_docs/read.ts b/sim/tools/google_docs/read.ts index 34b84c94f..cd59894cc 100644 --- a/sim/tools/google_docs/read.ts +++ b/sim/tools/google_docs/read.ts @@ -12,8 +12,8 @@ export const readTool: ToolConfig additionalScopes: ['https://www.googleapis.com/auth/drive.file'], }, params: { - accessToken: { type: 'string', required: true }, - documentId: { type: 'string', required: true }, + accessToken: { type: 'string', required: true, description: 'The access token for the Google Docs API' }, + documentId: { type: 'string', required: true, description: 'The ID of the document to read' }, }, request: { url: (params) => { diff --git a/sim/tools/google_docs/write.ts b/sim/tools/google_docs/write.ts index 433710345..35fd0e9b8 100644 --- a/sim/tools/google_docs/write.ts +++ b/sim/tools/google_docs/write.ts @@ -12,9 +12,9 @@ export const writeTool: ToolConfig { diff --git a/sim/tools/google_drive/download.ts b/sim/tools/google_drive/download.ts index a9e7e975e..4e1d43568 100644 --- a/sim/tools/google_drive/download.ts +++ b/sim/tools/google_drive/download.ts @@ -12,8 +12,8 @@ export const downloadTool: ToolConfig `https://www.googleapis.com/drive/v3/files/${params.fileId}?alt=media`, diff --git a/sim/tools/google_drive/export.ts b/sim/tools/google_drive/export.ts index 65b8813fb..078eb022e 100644 --- a/sim/tools/google_drive/export.ts +++ b/sim/tools/google_drive/export.ts @@ -19,9 +19,9 @@ export const exportTool: ToolConfig< additionalScopes: ['https://www.googleapis.com/auth/drive.file'], }, params: { - accessToken: { type: 'string', required: true }, - fileId: { type: 'string', required: true }, - mimeType: { type: 'string', required: false }, + accessToken: { type: 'string', required: true, description: 'The access token for the Google Drive API' }, + fileId: { type: 'string', required: true, description: 'The ID of the file to export' }, + mimeType: { type: 'string', required: false, description: 'The MIME type to export the file as' }, }, request: { url: (params) => { diff --git a/sim/tools/google_drive/list.ts b/sim/tools/google_drive/list.ts index 4d0411474..1aaeac0b3 100644 --- a/sim/tools/google_drive/list.ts +++ b/sim/tools/google_drive/list.ts @@ -12,11 +12,11 @@ export const listTool: ToolConfig { diff --git a/sim/tools/google_drive/upload.ts b/sim/tools/google_drive/upload.ts index 92e74af2b..f11571479 100644 --- a/sim/tools/google_drive/upload.ts +++ b/sim/tools/google_drive/upload.ts @@ -12,11 +12,11 @@ export const uploadTool: ToolConfig { diff --git a/sim/tools/google_sheets/update.ts b/sim/tools/google_sheets/update.ts index 7d5f480d4..8b874a660 100644 --- a/sim/tools/google_sheets/update.ts +++ b/sim/tools/google_sheets/update.ts @@ -12,12 +12,12 @@ export const updateTool: ToolConfig { diff --git a/sim/tools/google_sheets/write.ts b/sim/tools/google_sheets/write.ts index 4dc231729..12ceb8acb 100644 --- a/sim/tools/google_sheets/write.ts +++ b/sim/tools/google_sheets/write.ts @@ -12,12 +12,12 @@ export const writeTool: ToolConfig {