- Category: documents
- Auth: OAUTH2
- Composio-managed OAuth available? Yes
- Tools: 48
- Triggers: 10
- Slug:
GOOGLEDOCS - Version: 20261101_00
Frequently Asked Questions
How do I set up custom Google OAuth credentials for Google Docs?
How do I set up custom Google OAuth credentials for Google Docs?
Why am I seeing "App is blocked" when connecting Google Docs?
Why am I seeing "App is blocked" when connecting Google Docs?
Why am I getting "Google Docs API has not been used in project" error?
Why am I getting "Google Docs API has not been used in project" error?
Why am I getting "Error 400: invalid_scope"?
Why am I getting "Error 400: invalid_scope"?
Why does the OAuth consent screen show "Composio" instead of my app?
Why does the OAuth consent screen show "Composio" instead of my app?
Why am I getting 401 errors on tool calls?
Why am I getting 401 errors on tool calls?
Why am I getting "Quota Exhausted" or "rate limit exhausted"?
Why am I getting "Quota Exhausted" or "rate limit exhausted"?
Tools
Copy Google Document
Copy Google Document
GOOGLEDOCS_COPY_DOCUMENTTool to create a copy of an existing Google Document. Use this to duplicate a document, for example, when using an existing document as a template. The copied document will have a default title (e.g., ‘Copy of [original title]’) if no new title is provided, and will be placed in the user’s root Google Drive folder.Input Parameters
Output
Create and Populate Table in Google Doc
Create and Populate Table in Google Doc
GOOGLEDOCS_CREATE_AND_POPULATE_TABLECreates a table in a Google Document and attempts to populate its cells with the provided text. Table creation and cell population are separate steps, so a failure after creation can leave the table in the document.Input Parameters
Output
Create a document
Create a document
GOOGLEDOCS_CREATE_DOCUMENTCreates a new Google Docs document using the provided title as filename and inserts the initial text at the beginning if non-empty, returning the document’s ID and metadata (excluding body content).Input Parameters
Output
Create blank document (Deprecated)
Create blank document (Deprecated)
GOOGLEDOCS_CREATE_DOCUMENT2DEPRECATED: Use GOOGLEDOCS_CREATE_DOCUMENT instead. Tool to create a blank Google Docs document with a specified title. Use when you need to create a new, empty document.Input Parameters
Output
Create Document Markdown
Create Document Markdown
GOOGLEDOCS_CREATE_DOCUMENT_MARKDOWNCreates a new Google Docs document, optionally initializing it with a title and content provided as Markdown text.Input Parameters
Output
Create Drive File
Create Drive File
Create Footnote
Create Footnote
GOOGLEDOCS_CREATE_FOOTNOTETool to create a new footnote in a Google Document. Use this when you need to add a footnote at a specific location or at the end of the document body.Input Parameters
Output
Create Header
Create Header
GOOGLEDOCS_CREATE_HEADERCreates a header in a Google Document, optionally for a specified section, and can add text. For a document-level default header, it may reuse an existing header; text insertion is attempted separately and its success is reported.Input Parameters
Output
Create Named Range
Create Named Range
GOOGLEDOCS_CREATE_NAMED_RANGETool to create a new named range in a Google Document. Use this to assign a name to a specific part of the document for easier reference or programmatic manipulation.Input Parameters
Output
Create Paragraph Bullets
Create Paragraph Bullets
GOOGLEDOCS_CREATE_PARAGRAPH_BULLETSTool to add bullets to paragraphs within a specified range in a Google Document. Use when you need to format a list or a set of paragraphs as bullet points.Input Parameters
Output
Create Document Tab
Create Document Tab
GOOGLEDOCS_CREATE_TABCreates a new tab in a Google Docs document. Tabs allow you to organize document content into separate sections within a single document. Use this action when you need to add a new organizational tab to a document. When a tab is added at a specified index, all subsequent tabs’ indexes are automatically incremented.Input Parameters
Output
Delete Content Range in Document
Delete Content Range in Document
GOOGLEDOCS_DELETE_CONTENT_RANGETool to delete a range of content from a Google Document. Use when you need to remove a specific portion of text or other structural elements within a document. Note: Every segment (body, header, footer, footnote) in Google Docs ends with a final newline character that cannot be deleted. Ensure the endIndex does not include this trailing newline.Input Parameters
Output
Delete Header
Delete Header
GOOGLEDOCS_DELETE_HEADERDeletes a specified header by ID from a Google Document, optionally targeting a document tab.Input Parameters
DocumentStyle, the reference to this header is removed, resulting in no header of that type for the first section of the document. If this header is defined on a SectionStyle, the reference to this header is removed and the header of that type is now continued from the previous section.Output
Delete Named Range
Delete Named Range
Delete Paragraph Bullets
Delete Paragraph Bullets
GOOGLEDOCS_DELETE_PARAGRAPH_BULLETSTool to remove bullets from paragraphs within a specified range in a Google Document. Use when you need to clear bullet formatting from a section of a document.Input Parameters
Output
Delete Tab
Delete Tab
Delete Table Column
Delete Table Column
Delete Table Row
Delete Table Row
Export Google Doc as PDF
Export Google Doc as PDF
GOOGLEDOCS_EXPORT_DOCUMENT_AS_PDFTool to export a Google Docs file as PDF using the Google Drive API. Use when you need to generate a PDF version of a Google Docs document for download or distribution. Note: Google Drive enforces a 10MB limit on export content.Input Parameters
Output
Get Drive File Metadata
Get Drive File Metadata
Get Spreadsheet Values
Get Spreadsheet Values
GOOGLEDOCS_GET_DOCS_SPREADSHEET_VALUESRead cell values from one range in a Google Sheets spreadsheet.Input Parameters
Output
Get document by id
Get document by id
GOOGLEDOCS_GET_DOCUMENT_BY_IDRetrieves an existing Google Document by its ID; will error if the document is not found.Input Parameters
Output
Get Document End Index
Get Document End Index
GOOGLEDOCS_GET_DOCUMENT_END_INDEXRetrieves the end index and paragraph structure of a Google Document or specific segment. Use this action when you need to determine valid insertion points for text operations, especially before using insertText requests. The end index represents the maximum boundary of the document body or specified segment (header, footer, footnote, or tab).Input Parameters
Output
Get document plain text
Get document plain text
GOOGLEDOCS_GET_DOCUMENT_PLAINTEXTRetrieve a Google Doc by ID and return a best-effort plain-text rendering. Converts document structure into plain text including paragraphs, lists, and tables without requiring clients to traverse complex Docs API JSON.Input Parameters
Output
Insert Image in Table Cell
Insert Image in Table Cell
GOOGLEDOCS_INSERT_IMAGE_IN_TABLE_CELLInserts an image from a URI at a position in a Google Document table cell identified by table start index, row and column. The table lookup searches top-level body content, including the specified top-level tab when provided.Input Parameters
Output
Insert Inline Image
Insert Inline Image
GOOGLEDOCS_INSERT_INLINE_IMAGETool to insert an image from a given URI at a specified location in a Google Document as an inline image. Use when you need to add an image to a document programmatically.Input Parameters
Output
Insert Page Break
Insert Page Break
Insert Table in Google Doc
Insert Table in Google Doc
GOOGLEDOCS_INSERT_TABLE_ACTIONTool to insert a table into a Google Document. Use when you need to add a new table at a specific location or at the end of a segment (like document body, header, or footer) in a document.Input Parameters
Output
Insert Table Column
Insert Table Column
GOOGLEDOCS_INSERT_TABLE_COLUMNTool to insert a new column into a table in a Google Document. Use this tool when you need to add a column to an existing table at a specific location.Input Parameters
Output
Insert Table Row
Insert Table Row
GOOGLEDOCS_INSERT_TABLE_ROWInserts a new row into a table in a Google Document at a specified location. Use this action when you need to add a row to an existing table, either above or below a reference cell location.Input Parameters
Output
Insert Text into Document
Insert Text into Document
GOOGLEDOCS_INSERT_TEXT_ACTIONTool to insert a string of text at a specified location within a Google Document. Use when you need to add new text content to an existing document. IMPORTANT: Two ways to specify insertion location: 1. Use ‘insertion_index’ to insert at a specific position (index 1 is safe for document start) 2. Use ‘append_to_end=true’ to append text to the end of the document (recommended for appending) CRITICAL CONSTRAINT: When using insertion_index, the index MUST fall within the bounds of an EXISTING paragraph. You cannot insert text at arbitrary indices or at structural boundaries (e.g., table starts). The index must also be strictly less than the document’s end index. To safely append text without index concerns, use append_to_end=true.Input Parameters
Output
Insert Text in Table Cell
Insert Text in Table Cell
GOOGLEDOCS_INSERT_TEXT_IN_TABLE_CELLInsert text into a Google Docs table using the table’s start index and zero-based row and column positions. Existing table content can cause the text to be inserted outside the requested cell.Input Parameters
Output
List Drive Item Permissions
List Drive Item Permissions
Get Charts from Spreadsheet
Get Charts from Spreadsheet
Replace All Text in Document
Replace All Text in Document
GOOGLEDOCS_REPLACE_ALL_TEXTReplaces occurrences of text in a Google Document, either across the document or in selected tabs. Supports case-sensitive matching and regular expressions.Input Parameters
Output
Replace Image in Document
Replace Image in Document
Search Documents
Search Documents
GOOGLEDOCS_SEARCH_DOCUMENTSSearch for Google Documents using various filters including name, content, date ranges, and more.Input Parameters
Output
Unmerge Table Cells
Unmerge Table Cells
Update Document Batch (Deprecated)
Update Document Batch (Deprecated)
GOOGLEDOCS_UPDATE_DOCUMENT_BATCHApplies a batch of updates to a Google Document, such as inserting text, updating styles, and modifying tables or document structure. Text-style requests with empty ranges are filtered out before the remaining requests are submitted; optional write control helps manage concurrent edits. DEPRECATED: Use UpdateExistingDocument instead.Input Parameters
Output
Update Document Markdown
Update Document Markdown
GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWNReplaces the body content of a Google Docs tab with rendered Markdown; requires edit permissions. If no tab is specified, the first tab is updated.Input Parameters
Output
Update Document Section Markdown
Update Document Section Markdown
GOOGLEDOCS_UPDATE_DOCUMENT_SECTION_MARKDOWNInsert or replace a section of a Google Docs document with rendered Markdown, using start and optional end indices, or append when no start index is provided. A replacement may leave the original content in place while inserting the new content.Input Parameters
Output
Update Document Style
Update Document Style
GOOGLEDOCS_UPDATE_DOCUMENT_STYLETool to update the overall document style, such as page size, margins, and default text direction. Use when you need to modify the global style settings of a Google Document.Input Parameters
Output
Update existing document
Update existing document
GOOGLEDOCS_UPDATE_EXISTING_DOCUMENTApplies a batch of edits to a specified Google Doc, such as inserting, deleting, or formatting text.Input Parameters
Output
Update Table Row Style
Update Table Row Style
Update Tab Properties
Update Tab Properties
GOOGLEDOCS_UPDATE_TAB_PROPERTIESUpdates properties of a document tab such as title, parent tab, index, and icon emoji. Use this action when you need to rename a tab, change its emoji icon, move it within the tab hierarchy, or reorganize tab structure.Input Parameters
Output
Triggers
New Document Created
New Document Created
GOOGLEDOCS_DOCUMENT_CREATED_TRIGGERType: pollTriggers when a new Google Doc is created. This trigger monitors Google Docs and fires when new documents are detected. Uses timestamp filtering to efficiently poll for new documents.Configuration
Payload
Document Deleted
Document Deleted
Document Placeholder Filled
Document Placeholder Filled
GOOGLEDOCS_DOCUMENT_PLACEHOLDER_FILLED_TRIGGERType: pollTriggers when a Google Doc’s plain text changes such that a configured placeholder token/pattern is no longer present (i.e., the document has been filled in).This trigger monitors a specific Google Doc and fires when a placeholder pattern that was previously present is no longer found in the document’s plain text.Configuration
Payload
Document Search Update
Document Search Update
GOOGLEDOCS_DOCUMENT_SEARCH_UPDATE_TRIGGERType: pollTriggers when a Google Doc matching a user-defined search query is newly created or updated since the last poll. This trigger uses timestamp filtering to efficiently monitor documents.Configuration
Payload
Document Structure Changed
Document Structure Changed
GOOGLEDOCS_DOCUMENT_STRUCTURE_CHANGED_TRIGGERType: pollTriggers when a Google Doc’s structure changes (headers/footers added/removed, tables/images count changes). This trigger monitors a specific document for structural changes like:- Headers added or removed
- Footers added or removed
- Tables added or removed
- Images (inline objects) added or removed
- Positioned objects added or removed
- Footnotes added or removed
Configuration
Payload
Document Updated
Document Updated
Document Word Count Threshold
Document Word Count Threshold
GOOGLEDOCS_DOCUMENT_WORD_COUNT_THRESHOLD_TRIGGERType: pollTriggers when a Google Doc’s word/character count crosses a user-defined threshold. This trigger monitors a specific Google Doc and fires when its word or character count becomes greater than or equal to the configured threshold value.Configuration
Payload
New Folder Created in Root
New Folder Created in Root
Keyword Detected in Document
Keyword Detected in Document
GOOGLEDOCS_KEYWORD_DETECTED_TRIGGERType: pollTriggers when a specific keyword or phrase first appears in a Google Doc. This trigger monitors a Google Doc and fires once when the specified keyword is detected. After the keyword is found, the trigger will not fire again until reset.Configuration
Payload
New Document Added
New Document Added
GOOGLEDOCS_PAGE_ADDED_TRIGGERType: pollTriggers when a new Google Doc is added/created. This trigger monitors Google Docs and fires when new documents are detected.