Google Docs integration: operations for AI agents
Google Docs connects to Type.com as an integration. This page lists the 9 operations documented for Claude and Codex in Type.com: 1 read, 6 write, 2 destructive.
About Google Docs
Read, create and edit Google Docs: insert text and rich content, find and replace, format text and paragraphs, and build lists.
Categories: Documents
How to connect Google Docs to Type.com
- Connect
- Sign in with Google (OAuth)
- Access
- Organization connection: one shared account for the workspace.
To add the connection, follow the steps in Space connections.
Documented operations
9 operations. Your connection's permissions determine which operations are available.
- Read
Google docs get
Get a Google Doc's content (title, body text, headings, lists). Returns the document as readable text, not raw JSON. Set includeIndices to true before editing existing text to get each paragraph's character range. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
- Write
Google docs add bullets
Turn paragraphs in a Google Doc into a bulleted or numbered list. Every paragraph the target touches becomes a list item. Target the content with findText (optionally occurrence and matchCase), or with startIndex and endIndex from google_docs_get with includeIndices true. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
- Write
Google docs create
Create a new blank Google Doc with a given title. Optionally pass a Google Drive folder ID selected in the integration settings to create it in that folder.
- Write
Google docs format paragraph
Apply paragraph formatting in a Google Doc: heading or title style, alignment, line spacing, and space above or below. Paragraph styles apply to every paragraph the target touches, not just the matched text. Target the content with findText (optionally occurrence and matchCase), or with startIndex and endIndex from google_docs_get with includeIndices true. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
- Write
Google docs format text
Apply text formatting to a range of characters in a Google Doc. Can make text bold, italic, underlined, strikethrough, or turn it into a hyperlink. Call google_docs_get with includeIndices true first to find the character indices. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
- Write
Google docs insert content
Insert rich content into a Google Doc from Markdown or structured blocks. Supports headings, paragraphs, bulleted lists, numbered lists, bold, italic, underline, strikethrough, and links. Tables and images are not supported yet. By default appends to the end of the document. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
- Write
Google docs insert text
Insert text into a Google Doc. By default appends to the end of the document. Optionally specify an index to insert at a specific position. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
- Destructive
Google docs delete content
Delete content from a Google Doc. Target the content with findText (optionally occurrence and matchCase), or with startIndex and endIndex from google_docs_get with includeIndices true. When deleting by startIndex and endIndex, also pass expectedText with the exact text currently in that range; the delete is refused if the document changed. To rewrite a passage, prefer google_docs_replace_text; or delete it and then insert new content at the returned startIndex. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
- Destructive
Google docs replace text
Find and replace text everywhere it appears in a Google Doc. Use this to edit, correct, or remove existing wording without rebuilding the document. Set replaceText to an empty string to delete every match. Existing formatting around the match is kept. When using this through the regular Google Drive & Docs service, access can be limited by selected Drive files. If regular Google Drive & Docs is not connected, recommend connecting Google Drive & Docs with provider google-drive-docs before suggesting full access. If a read or edit fails after regular Google Drive & Docs is connected and Google Docs & Drive (full access) is connected, retry the same Google Docs tool with service google-docs-full. Only offer to connect Google Docs & Drive (full access) with provider google-docs-full when regular Google Drive & Docs is already connected and the task still needs broad Docs and Drive access. If the user says this will be repeated, asks to do this often, or needs broad Docs/Drive operations, call google_drive_request_full_access with a reason and optional query so the full-access card renders. If the user only needs a specific document or prefers limited access, use google_drive_select_files with a reason and optional query so the user can select the document, then retry.
No operations match.
Not supported
- Inserting tables or images
- Reading or resolving comments and suggestions
- Changing a Doc's sharing settings
Example prompts
- Turn these meeting notes into a formatted Google Doc in our Meetings folder.
- Replace 'Q3' with 'Q4' throughout the planning doc.
- Make every section title in this doc a Heading 2.
Get started
- Open Space settings → Connections and search for Google Docs.
- Connect your account and add the connection to the Space.
- Ask for what you need in any thread in that Space.
See How connections work for access and permissions, or browse all integrations.