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
+73-8Lines changed: 73 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,16 @@ These tools are currently available in the Arcade Google Docs toolkit.
32
32
<TableOfContents
33
33
headers={["Tool Name", "Description"]}
34
34
data={[
35
-
["GoogleDocs.GetDocumentById", "Retrieve a Google Docs document by ID. Note: This tool currently requires a self-hosted instance of Arcade.", ],
36
-
["GoogleDocs.InsertTextAtEndOfDocument", "Insert text at the end of a Google Docs document. Note: This tool currently requires a self-hosted instance of Arcade.", ],
37
-
["GoogleDocs.CreateBlankDocument", "Create a new blank Google Docs document with a title. Note: This tool currently requires a self-hosted instance of Arcade.", ],
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
-
["GoogleDocs.SearchDocuments", "Search for documents in the user's Google Drive. Note: This tool currently requires a self-hosted instance of Arcade."],
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.", ],
35
+
["GoogleDocs.GetDocumentById", "Retrieve a Google Docs document by ID.", ],
36
+
["GoogleDocs.GetDocumentAsDocMD", "Retrieve a Google Docs document by ID in DocMD format with metadata tags.", ],
37
+
["GoogleDocs.EditDocument", "Edit a Google Docs document using natural language edit requests.", ],
38
+
["GoogleDocs.InsertTextAtEndOfDocument", "Insert text at the end of a Google Docs document.", ],
39
+
["GoogleDocs.CreateBlankDocument", "Create a new blank Google Docs document with a title.", ],
40
+
["GoogleDocs.CreateDocumentFromText", "Create a new Google Docs document with specified text content.", ],
41
+
["GoogleDocs.SearchDocuments", "Search for documents in the user's Google Drive."],
42
+
["GoogleDocs.SearchAndRetrieveDocuments", "Search and retrieve the contents of Google documents in the user's Google Drive."],
43
+
["GoogleDocs.ListDocumentComments", "List all comments on the specified Google Docs document.", ],
44
+
["GoogleDocs.CommentOnDocument", "Comment on a specific document by its ID.", ],
43
45
]}
44
46
/>
45
47
@@ -75,6 +77,60 @@ Get the latest version of the specified Google Docs document.
Get the latest version of the specified Google Docs document in DocMD format. The DocMD output includes tags that can be used to annotate the document with location information, block types, block IDs, and other metadata.
98
+
99
+
**Parameters**
100
+
101
+
-**`document_id`**_(string, required)_ The ID of the document to retrieve.
Edit a Google Docs document using natural language edit requests. This tool is stateless and does not have context about previous edits. If your edit request depends on knowledge about previous edits, provide that context in the edit requests.
123
+
124
+
Note that this tool is agentic, and requires the secret OPENAI_API_KEY to be set.
125
+
126
+
**Parameters**
127
+
128
+
-**`document_id`**_(string, required)_ The ID of the document to edit.
129
+
-**`edit_requests`**_(list[str], required)_ A list of natural language descriptions of the desired changes to the document. Each entry should be a single, self-contained edit request that can be fully understood independently. Note: Each request may result in zero, one, or multiple actual edits depending on what changes are needed (e.g., a request might be ignored if the change already exists in the document).
130
+
-**`reasoning_effort`**_(enum ([ReasoningEffort](#reasoningeffort)), optional)_ The effort to put into reasoning about the edits. Defaults to medium.
131
+
132
+
---
133
+
78
134
## GoogleDocs.InsertTextAtEndOfDocument
79
135
80
136
<br />
@@ -314,4 +370,13 @@ Sort keys for ordering files in Google Drive. Each key has both ascending and de
314
370
-**`VIEWED_BY_ME_TIME`**: The last time the file was viewed by the user (ascending).
315
371
-**`VIEWED_BY_ME_TIME_DESC`**: The last time the file was viewed by the user (descending).
316
372
373
+
### ReasoningEffort
374
+
375
+
The effort to put into reasoning about document edits.
376
+
377
+
-**`MINIMAL`**: Minimal reasoning effort for simple, straightforward edits.
378
+
-**`LOW`**: Minimal reasoning effort for simple, straightforward edits.
379
+
-**`MEDIUM`**: Moderate reasoning effort for most editing tasks (default).
380
+
-**`HIGH`**: Maximum reasoning effort for complex edits requiring careful analysis.
0 commit comments