Google Docs
integrationRead Google Docs and Drive files, and edit Docs in place
Google Docs and read-only Drive file access. Finds folders and reads uploaded PDFs, Office documents, images, and text files. Reads structured Doc content, appends paragraphs and headings, edits header/footer text and styling, supports native rich-content batch edits and DOCX imports, runs find-and-replace, and exports to PDF, docx, or plain text. Designed to be composed by productivity and household agents (drop a generated artifact into a shared Doc, append meeting notes, template-fill a Doc from {{TOKENS}}). Also chattable directly for ad-hoc Doc work.
Source: Google Docs
Peers (8)
Bills
Never miss a due date or an unwanted renewal
Garage
Keep your car serviced, on schedule, and recall-free
House Manager
Home maintenance, upkeep, and fix-it know-how in one place
Product Picks
Tell me what to buy, balanced for value and quality
Q
Your generalist AI that delegates to specialist agents
Travel Scout
Plan trips without the overwhelm
Wealth Desk
Your household's personal finance brain
Workplace
Coordinate customer and engineering work across connected accounts
Tools (33)
Search drive files
Search all connected Drive files and folders, including uploaded PDFs and Office files. Use Drive q syntax: name contains 'Articles', or '<folderId>' in parents. Find folders by mimeType = 'application/vnd.google-apps.folder', then search their children (not recursive). Returns nextPageToken for pagination. Use read_drive_file to read a result; Doc editing tools remain Docs-only.
Read drive file
Read a Drive file by id using the connected user's Google permissions. Supports PDFs, images, Office documents and readable Unicode files. Native Docs export as text; native Sheets/Slides export as PDF. In chat, delivers readable content in this turn; elsewhere returns bounded extracted text (scanned PDFs may require chat). No edits or conversion writes. Folders, shortcuts and unsupported binary files return explicit limitations.
Search docs
Search the user's Google Docs by name / parent / modifiedTime. Always scoped to Docs β non-Doc files are filtered out. Examples for `query`: "name contains 'Tokyo'", "'<folderId>' in parents and trashed = false", "modifiedTime > '2026-01-01T00:00:00Z'". Use before any mutating tool to resolve a doc by name.
List recent docs
List the user's most recently modified Google Docs, newest first.
Get doc metadata
Fetch full metadata for a single Doc by id. Always call this before a destructive mutation to confirm the right doc.
Get doc permissions
List who has access to a Doc and at what role. Returns one entry per principal (user, group, domain, anyone).
List revisions
List revisions of a Doc. Each entry has id, modifiedTime, lastModifyingUser, and size. Use to audit who changed what when.
Read doc review
Read all document tabs, indexed content, anchored comments, suggestion threads and revisionId as the connected user. view=inline for editing; accepted/rejected are read-only previews of ALL suggestions, not accept/reject actions.
Create doc comment
Create a native anchored comment on a body range in an explicit tab, as the connected user. Get UTF-16 indices and revisionId from read_doc_review(view=inline).
Reply doc thread
Reply to a native comment or suggestion thread as the connected Google user.
Set doc comment status
Resolve or reopen a native comment. Ask the user first; confirm must equal resolve:comment_id or reopen:comment_id. Does not accept suggestions.
Suggest doc edit
Suggest replacing a body range (UTF-16 indices) in an explicit tab, preserving the original as tracked changes. Empty range inserts; empty text suggests deletion. Require revisionId from an inline read. Never falls back to direct editing.
Decide doc suggestion
Accept or reject ONE suggestion as the connected user. Read the inline review first and ask the user to confirm this specific change. confirm must equal accept:suggestion_id or reject:suggestion_id. Requires an editor revisionId.
Read doc content
Return the structured body of a Doc: title plus an ordered list of paragraphs with their headingId, named style, and text. Use when you need to find headings or specific structural elements before editing. For plain-text content prefer read_doc_text.
Read doc text
Return the plain-text content of a Doc, exported via Drive. Good for summarizing, extracting, or diffing. Use read_doc_content when you need heading structure too. Capped at 25 MB.
Append doc text
Append text to the end of a Doc. Optional `heading_level` (1-6) wraps the text in a heading style; otherwise it's added as normal body text. Each call adds a leading newline so successive appends do not run together.
Replace doc text
Find and replace text across a Doc. Replaces every occurrence of `find` with `replace`. Useful for templating: create a Doc from a template, then swap {{NAME}}, {{DATE}}, etc.
Export doc
Export a Doc to a downloadable format. Common targets: 'application/pdf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' (docx), 'text/plain', 'text/html'. Returns base64 bytes. Capped at 25 MB.
Create doc
Create a new empty Google Doc. Optional `parents=[<folderId>]` to place it in a folder; defaults to the user's root. Optional `initial_text` writes a first paragraph after creation.
Rename doc
Rename a Doc without moving it.
Copy doc
Duplicate a Doc. Optional new name and destination parents. Useful for templating: copy a template, then `replace_doc_text` the {{TOKENS}} in the copy.
Import doc
Import supplied DOCX content_base64 as a NEW native Google Doc, with optional destination folder. Compatible with export_doc's DOCX result. Validates size/XML safety but does not transform the package, choose a layout, strip comments or overwrite an existing document. Google conversion can alter rendering and does not recreate native sharing, review threads or revision history. Re-read/export the new Doc to verify it. Never blindly retry an upload with an uncertain outcome.
Batch update doc
Apply general native Google Docs content-edit primitives atomically: text, images, tables, bullets, styles, page/section layout, headers/footers, footnotes, named ranges, tabs, dates, people mentions, rich links and dropdowns. Use camelCase API request fields, explicit tabId targets, segmentId for headers/footers/footnotes, and UTF-16 indices from read_doc_review(view=inline). Supply its current revision_id; stale revisions fail without automatic rebasing. CreateHeader/Footer target a tab through sectionBreakLocation, not top-level tabId. Direct edits, not suggestions. Obtain authorization for destructive/shared/legal edits. Review decisions/comments must use the dedicated approval-gated tools. Deleting a tab also deletes its children. Returns native replies and writeControl; use returned IDs and re-read after changes before further edits.
Trash doc
Move a Doc to the Drive trash. Recoverable via untrash_doc or the Drive UI for 30 days. Prefer this over delete_doc.
Untrash doc
Restore a trashed Doc to its previous parent folder.
Delete doc
Permanently delete an entire DOC FILE, bypassing trash. DESTRUCTIVE and unrecoverable. Only call this when the user explicitly says 'delete the doc' / 'delete the file' / 'permanently'. For routine removal use trash_doc. The `confirm` argument must exactly match the doc's current name β fetch via get_doc_metadata and read it back to the user before they confirm.
Share doc
Add a permission to a Doc. Type is 'user' / 'group' / 'domain' / 'anyone'. Role is 'reader' / 'commenter' / 'writer' / 'owner'. Confirm before sharing externally (outside the user's domain) or granting writer/owner.
Update permission
Change the role on an existing Doc permission. Use to upgrade a commenter to a writer, or downgrade a writer to a reader. To remove access entirely, use remove_permission.
Remove permission
Revoke access for a single permission entry. DESTRUCTIVE: the principal loses access immediately. The `confirm` argument must exactly match the principal's email address (or displayName for non-user permissions) β fetch via get_doc_permissions and read it back to the user before they confirm.
Create doc header footer
Create a DEFAULT header or footer in an explicit document tab. Returns Google's createHeader.headerId or createFooter.footerId in replies. Read the inline review first and reuse an existing segment instead of recreating it. Paged Docs only.
Edit doc header footer
Directly insert, replace or delete header/footer text in one explicit tab and segment. Use UTF-16 [start_index, end_index) from read_doc_review(view=inline); equal indices insert, empty text deletes. Preserve the final newline. Does not copy images, tables or dynamic page-number fields, or create tracked suggestions.
Format doc text
Apply text formatting to a range of characters in a Doc. The range is the half-open [start_index, end_index) using the document's character offsets β get them from `read_doc_content` for body text or `read_doc_review` for headers/footers. Optional segment_id requires tab_id; indices are UTF-16 and segment-relative. Omit segment_id for body formatting. Pass only the keys you want to change.
Format doc paragraphs
Apply paragraph formatting to a range: alignment, named style (Title / Heading 1-6 / Normal text), line spacing, and indents. The range is [start_index, end_index) over the document's character offsets β every paragraph that touches that range receives the style. Optional segment_id requires tab_id for header/footer ranges from read_doc_review. Indices are segment-relative UTF-16; omit segment_id to retain body formatting.
Chat with Google Docs
Open chat