Google Docs
Service domainDOCUMENTS
Arcade Optimized
Arcade.dev LLM tools for Google Docs
13tools
9require secrets
Google Docs Toolkit
The Google Docs toolkit connects Arcade to Google Docs, enabling LLMs to create, read, edit, search, and annotate documents on behalf of authenticated users.
Capabilities
- Document creation: Create blank documents or documents pre-populated with plain text or Markdown content (headings, bold, italic, lists automatically formatted).
- Document reading: Retrieve full document content in DocMD format (block IDs, character indices, text styles) with tab-aware output, or fetch metadata-only (title, ID, URL, character counts, tab hierarchy).
- Structured editing: Apply batchUpdate requests using DocMD indices for precise in-place edits; append text to the end of a document without constructing requests manually.
- Search and discovery: Search Drive for documents by keyword, returning metadata-only or metadata with body content; deprecated raw-content retrieval is replaced by DocMD-based tools.
- Comments: Add new comments to a document or list all existing comments on it.
- User context and file access: Retrieve the authenticated user's profile and permissions; generate a Google Drive inline file-picker URL to request per-file access when a document is inaccessible.
OAuth
This toolkit uses OAuth 2.0 via Google. See the Arcade Google auth provider docs for setup details.
Secrets
ENABLE_GOOGLE_DRIVE_INLINE_PICKER_URL: Controls whether theGenerateGoogleFilePickerUrltool is enabled and determines the base URL for the Google Drive first-party file picker flow. This is an internal configuration key — its value is the URL of the picker endpoint your deployment exposes. If you are self-hosting Arcade or running a custom deployment, set this to the appropriate endpoint URL. In Arcade's managed environment, this may already be configured. Contact your Arcade account or check the Arcade secrets dashboard to confirm whether it needs to be set for your deployment.
For general guidance on defining and managing secrets in Arcade tools, see the Arcade tool secrets docs.
Available tools(13)
13 of 13 tools
Operations
Behavior
| Tool name | Description | Secrets | |
|---|---|---|---|
Comment on a specific document by its ID. | 1 | ||
Create a blank Google Docs document with the specified title. | |||
Create a Google Docs document with the specified title and text content.
When input_format is MARKDOWN, the text_content is parsed as Markdown and the resulting
document is formatted with headings, bold, italic, bullet lists, and numbered lists. | |||
Read or edit a Google Docs document using structured batchUpdate requests.
When called without requests, returns the document content in DocMD format (block IDs,
character indices, and text styles). When called with requests, applies the edits and
returns the updated DocMD. Use the DocMD indices from the response to construct
requests for subsequent calls. | 1 | ||
Generate a URL where the user can grant this app access to specific Drive files.
Check `url` first. An empty `url` with a `reason` means this app already reaches every
document the connected account can open, so there is no per-file grant to request: this
tool cannot change any outcome, and a document that could not be read is one the
account itself cannot open. Do not retry it.
Otherwise the URL opens Google's first-party Drive picker, where the user selects which
files to share with this application — it is not a sign-in or credential prompt. Use
this when a prior tool reported that a file was not found or access was denied, and the
user expects the file to exist. After the user completes the picker flow, retry the
prior tool. | |||
Get the latest version of the specified Google Docs document as DocMD.
The DocMD output will include tags that can be used to annotate the document with location
information, the type of block, block IDs, and other metadata. If the document has tabs,
all tabs are included in sequential order unless a specific tab_id is provided. | 1 | ||
DEPRECATED DO NOT USE THIS TOOL
Get the latest version of the specified Google Docs document. | 1 | ||
Get metadata for a Google Docs document including hierarchical tab structure.
Returns document title, ID, URL, total character count, and nested tab information
with character counts for each tab. | 1 | ||
Updates an existing Google Docs document using the batchUpdate API endpoint. | 1 | ||
List all comments on the specified Google Docs document. | 1 | ||
Searches for documents in the user's Google Drive and returns documents with their main body
content and tab metadata. Excludes documents that are in the trash.
Returns main body content only with metadata about tabs. Use get_document_as_docmd() to retrieve
full tab content for specific documents. Use search_documents() for metadata-only searches. | 1 | ||
Searches for documents in the user's Google Drive. Excludes documents in trash.
Returns metadata only. Use get_document_metadata or get_document_as_docmd for content. | 1 | ||
Get comprehensive user profile and Google Docs environment information.
This tool provides detailed information about the authenticated user including
their name, email, profile picture, Google Docs access permissions, and other
important profile details from Google services. |
Last updated on