Google Docs
Allow AI systems to read and edit Google Docs.
Versions
1.0.0latest1.2.0Tools 7
document_insert Insert text at a specific location in a Google Doc. Use document_get to find the appropriate index. Index 1 is the beginning of the document body.
document_get_raw Get the full raw JSON structure of a Google Doc, including all tabs, formatting, headers, footers, and styles. Google Docs content is organized under tabs - body content is at tabs[].documentTab.body.content, not at the top level. Warning: responses can be very large. Consider using jq to extract specific fields, or use document_get_text for plain text content.
document_get_text Get the plain text content of a Google Doc without formatting, including all tabs. Google Docs content is organized under tabs (at tabs[].documentTab.body.content in the raw API), but this tool extracts and flattens the text for you. For very long documents, consider writing output to a file and reading specific sections.
document_replace Find and replace all occurrences of text in a Google Doc. Returns the number of replacements made.
document_append Append text to the end of a Google Doc. This is a convenience wrapper around batch_update that inserts text at the end of the document body.
document_create Create a new blank Google Doc with the specified title.
document_batch_update Apply one or more updates to a Google Doc. Supports inserting/deleting text, find/replace, inserting images and tables, managing bullets, and more. All requests are applied atomically - if any fails, none are applied.
Permissions 2
network medium env_vars low