You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/toolkits/productivity/google_docs.mdx
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ These tools are currently available in the Arcade Google Docs toolkit.
38
38
["GoogleDocs.CreateDocumentFromText", "Create a new Google Docs document with specified text content. Note: This tool currently requires a self-hosted instance of Arcade.", ],
39
39
["GoogleDocs.SearchDocuments", "Search for documents in the user's Google Drive. Note: This tool currently requires a self-hosted instance of Arcade."],
40
40
["GoogleDocs.SearchAndRetrieveDocuments", "Search and retrieve the contents of Google documents in the user's Google Drive. Note: This tool currently requires a self-hosted instance of Arcade."],
41
+
["GoogleDocs.ListDocumentComments", "List all comments on the specified Google Docs document. Note: This tool currently requires a self-hosted instance of Arcade.", ],
42
+
["GoogleDocs.CommentOnDocument", "Comment on a specific document by its ID. Note: This tool currently requires a self-hosted instance of Arcade.", ],
41
43
]}
42
44
/>
43
45
@@ -211,6 +213,60 @@ Searches for documents in the user's Google Drive and returns a list of document
211
213
-**`limit`**_(int, optional)_ The number of documents to list. Defaults to `50`.
212
214
-**`pagination_token`**_(str, optional)_ The pagination token to continue a previous request
The Arcade Google Sheets toolkit provides pre-built tools for working with spreadsheets using the Google Sheets API. Use these tools to:
18
+
The Arcade GoogleSheets toolkit provides a pre-built set of tools for working with Google Sheets. These tools make it easy to build agents and AI apps that can:
21
19
22
-
- Create new spreadsheets
23
-
- Retrieve spreadsheet data
24
-
- Update cell values
20
+
- Create new spreadsheets and seed initial data.
21
+
- Search Google Drive for spreadsheets and retrieve metadata (titles, IDs, URLs; excludes trash).
22
+
- Read specific ranges from sheets.
23
+
- Write to single cells or update ranges with flexible data formats.
24
+
- Add notes to cells.
25
+
- Get detailed spreadsheet and sheet metadata (names, IDs, positions, row/column counts; metadata only).
25
26
26
27
## Available Tools
27
28
28
-
These tools are currently available in the Arcade Google Sheets toolkit.
29
-
30
29
<TableOfContents
31
30
headers={["Tool Name", "Description"]}
32
-
data={[
33
-
["GoogleSheets.CreateSpreadsheet", "Create a new spreadsheet with a title and optional data."],
34
-
["GoogleSheets.GetSpreadsheet", "Retrieve spreadsheet properties and cell data for all sheets."],
35
-
["GoogleSheets.WriteToCell", "Write a value to a specific cell in a spreadsheet."],
36
-
]}
31
+
data={
32
+
[
33
+
["GoogleSheets.CreateSpreadsheet", "Create a new spreadsheet with the provided title and data in its first sheet"],
34
+
["GoogleSheets.WriteToCell", "Write a value to a single cell in a spreadsheet."],
35
+
["GoogleSheets.UpdateCells", "Write values to a Google Sheet using a flexible data format."],
36
+
["GoogleSheets.AddNoteToCell", "Add a note to a specific cell in a spreadsheet. A note is a small"],
37
+
["GoogleSheets.SearchSpreadsheets", "Searches for spreadsheets in the user's Google Drive based on the titles and content and"],
38
+
["GoogleSheets.GetSpreadsheet", "Gets the specified range of cells from a single sheet in the spreadsheet."],
39
+
["GoogleSheets.GetSpreadsheetMetadata", "Gets the metadata for a spreadsheet including the metadata for the sheets in the spreadsheet."],
40
+
]
41
+
}
37
42
/>
38
43
39
44
<Tip>
40
45
If you need to perform an action that's not listed here, you can [get in touch
41
46
with us](mailto:[email protected]) to request a new tool, or [create your
42
-
own tools](/home/build-tools/create-a-toolkit) with the [Google auth
Create a new spreadsheet with the provided title and data in its first sheet
49
66
50
67
**Parameters**
51
68
52
-
-**`title`**_(string, required, default "Untitled spreadsheet")_: The title of the new spreadsheet.
53
-
-**`data`**_(string, optional)_: A JSON string representing a dictionary that maps row numbers to dictionaries. Each sub-dictionary maps column letters to cell values. For example, `data[23]["C"]` is the value for row 23, column C.
69
+
-**title** (`string`, optional) The title of the new spreadsheet
70
+
-**data** (`string`, optional) The data to write to the spreadsheet. A JSON string (property names enclosed in double quotes) representing a dictionary that maps row numbers to dictionaries that map column letters to cell values. For example, data[23]['C'] would be the value of the cell in row 23, column C. Type hint: dict[int, dict[str, Union[int, float, str, bool]]]
Write values to a Google Sheet using a flexible data format.
73
115
74
116
**Parameters**
75
117
76
-
-**`spreadsheet_id`**_(string, required)_: The ID of the spreadsheet to retrieve.
77
-
-**`sheet_position`**_(int, optional, default 1)_: The position/tab of the sheet in the spreadsheet to get. A value of 1 represents the first (leftmost/Sheet1) sheet.
78
-
-**`sheet_id_or_name`**_(string, optional, default None)_: The ID or name of the sheet to get. If not provided, `sheet_position` will be used.
79
-
-**`start_row`**_(int, optional, default 1)_: Starting row number (1-indexed).
-**`max_rows`**_(int, optional, default 1000)_: Maximum number of rows to fetch for each sheet in the spreadsheet. Must be between 1 and 1000.
82
-
-**`max_cols`**_(int, optional, default 100)_: Maximum number of columns to fetch for each sheet in the spreadsheet. Must be between 1 and 100.
118
+
-**spreadsheet_id**(`string`, required) The id of the spreadsheet to write to
119
+
-**data**(`string`, required) The data to write. A JSON string (property names enclosed in double quotes) representing a dictionary that maps row numbers to dictionaries that map column letters to cell values. For example, data[23]['C'] is the value for cell C23. This is the same format accepted by create_spreadsheet. Type hint: dict[int, dict[str, int | float | str | bool]]
120
+
-**sheet_position**(`integer`, optional) The position/tab of the sheet in the spreadsheet to write to. A value of 1 represents the first (leftmost/Sheet1) sheet. Defaults to 1.
121
+
-**sheet_id_or_name**(`string`, optional) The id or name of the sheet to write to. If provided, takes precedence over sheet_position.
Add a note to a specific cell in a spreadsheet. A note is a small
140
+
141
+
**Parameters**
142
+
143
+
-**spreadsheet_id** (`string`, required) The id of the spreadsheet to add a comment to
144
+
-**column** (`string`, required) The column string to add a note to. For example, 'A', 'F', or 'AZ'
145
+
-**row** (`integer`, required) The row number to add a note to
146
+
-**note_text** (`string`, required) The text for the note to add
147
+
-**sheet_position** (`integer`, optional) The position/tab of the sheet in the spreadsheet to write to. A value of 1 represents the first (leftmost/Sheet1) sheet. Defaults to 1.
148
+
-**sheet_id_or_name** (`string`, optional) The id or name of the sheet to write to. If provided, takes precedence over sheet_position.
149
+
100
150
101
-
Write a value to a specific cell in a spreadsheet.
Searches for spreadsheets in the user's Google Drive based on the titles and content and
102
167
103
168
**Parameters**
104
169
105
-
-**`spreadsheet_id`**_(string, required)_: The ID of the spreadsheet.
106
-
-**`column`**_(string, required)_: The column to write to (for example, "A", "F", or "AZ").
107
-
-**`row`**_(int, required)_: The row number to write to.
108
-
-**`value`**_(string, required)_: The value to set in the specified cell.
109
-
-**`sheet_name`**_(string, optional, default "Sheet1")_: The name of the sheet to update.
170
+
-**spreadsheet_contains** (`array[string]`, optional) Keywords or phrases that must be in the spreadsheet title. Provide a list of keywords or phrases if needed.
171
+
-**spreadsheet_not_contains** (`array[string]`, optional) Keywords or phrases that must NOT be in the spreadsheet title. Provide a list of keywords or phrases if needed.
172
+
-**search_only_in_shared_drive_id** (`string`, optional) The ID of the shared drive to restrict the search to. If provided, the search will only return spreadsheets from this drive. Defaults to None, which searches across all drives.
173
+
-**include_shared_drives** (`boolean`, optional) Whether to include spreadsheets from shared drives. Defaults to False (searches only in the user's 'My Drive').
174
+
-**include_organization_domain_spreadsheets** (`boolean`, optional) Whether to include spreadsheets from the organization's domain. This is applicable to admin users who have permissions to view organization-wide spreadsheets in a Google Workspace account. Defaults to False.
175
+
-**order_by** (`Enum`[OrderBy](/toolkits/productivity/google_sheets/reference#orderby), optional) Sort order. Defaults to listing the most recently modified spreadsheets first
176
+
-**limit** (`integer`, optional) The maximum number of spreadsheets to list. Defaults to 10. Max is 50
177
+
-**pagination_token** (`string`, optional) The pagination token to continue a previous request
Gets the specified range of cells from a single sheet in the spreadsheet.
127
196
128
-
## Auth
197
+
**Parameters**
129
198
130
-
The Arcade Google Sheets toolkit uses the [Google auth provider](/home/auth-providers/google) to connect to users' Google accounts.
199
+
-**spreadsheet_id** (`string`, required) The id of the spreadsheet to get
200
+
-**sheet_position** (`integer`, optional) The position/tab of the sheet in the spreadsheet to get. A value of 1 represents the first (leftmost/Sheet1) sheet . Defaults to 1.
201
+
-**sheet_id_or_name** (`string`, optional) The id or name of the sheet to get. Defaults to None, which means sheet_position will be used instead.
202
+
-**start_row** (`integer`, optional) Starting row number (1-indexed, defaults to 1)
203
+
-**start_col** (`string`, optional) Starting column letter(s) or 1-based column number (defaults to 'A')
204
+
-**max_rows** (`integer`, optional) Maximum number of rows to fetch for each sheet in the spreadsheet. Must be between 1 and 1000. Defaults to 1000.
205
+
-**max_cols** (`integer`, optional) Maximum number of columns to fetch for each sheet in the spreadsheet. Must be between 1 and 100. Defaults to 100.
131
206
132
-
With the hosted Arcade Engine, there's nothing to configure. Your users will see `Arcade` as the name of the application that's requesting permission.
133
207
134
-
With a self-hosted installation of Arcade, you need to [configure the Google auth provider](/home/auth-providers/google#configuring-google-auth) with your own Google app credentials.
Gets the metadata for a spreadsheet including the metadata for the sheets in the spreadsheet.
224
+
225
+
**Parameters**
226
+
227
+
-**spreadsheet_id** (`string`, required) The id of the spreadsheet to get metadata for
228
+
229
+
230
+
231
+
232
+
## Auth
233
+
234
+
The Arcade GoogleSheets toolkit uses the [Google auth provider](/home/auth-providers/google) to connect to users' GoogleSheets accounts. Please refer to the [Google auth provider](/home/auth-providers/google) documentation to learn how to configure auth.
0 commit comments