Integration for Google Docs
googledocs.getDocument
documentId
(TEXT, Required): The ID of the Google Doc to retrieve. This is the string of characters in the URL after ‘document/d/’ when viewing the document
extractPlainTextOnly
(BOOLEAN, Optional): When true, returns only the plain text content of the document without formattingmetadataOnly
(BOOLEAN, Optional): When true, returns only the document metadata without the full contentincludeTabsContent
(BOOLEAN, Optional): When true, returns document with tabs structure populated. When false or unspecified, returns content from the first tab onlydocumentId
: Document IDtitle
: Document titlebody
: Document body content (if not metadata only)plainText
: Plain text content (if extractPlainTextOnly is true)viewUrl
: URL to view the document in Google DocsretrievedAt
: Timestamp when the document was retrievedhasMultipleTabs
: Whether the document has multiple tabs (if includeTabsContent is true)tabs
: Array of tab objects (if includeTabsContent is true)metadata
: Document metadata including creation time, modification time, owners, etc.googledocs.searchFile
nameContains
(TEXT, Optional): Only return documents whose name contains this text. Partial and case-insensitive matches are allowed
owner
(TEXT, Optional): Only return documents owned by this email address. Leave blank to include documents from any ownermodifiedAfter
(TEXT, Optional): Only return documents modified after this date (inclusive). Use ISO format (e.g., 2024-05-01)modifiedBefore
(TEXT, Optional): Only return documents modified before this date (exclusive). Use ISO format (e.g., 2024-06-01)folder
(TEXT, Optional): Only return documents located in this folder. Provide the folder ID. Leave blank for all foldersmaximumResults
(TEXT, Optional): The maximum number of documents to return. Leave blank to use the default (5000). The maximum allowed is 10,000id
: Document IDname
: Document namemimeType
: Document MIME typecreatedTime
: Creation timestampmodifiedTime
: Last modification timestampowners
: Array of owner informationwebViewLink
: Link to view the documentsize
: File size in bytesdescription
: Document descriptionproperties
: Custom propertiesappProperties
: Application-specific propertiesgoogledocs.updateDocument
documentId
(TEXT, Required): The ID of the Google Doc to update. This is the string of characters in the URL after ‘document/d/’ when viewing the document, you can also retrieve it via the search file tool
markdownText
(MULTI_LINE_TEXT, Optional): Optional raw Markdown to append and convert to native Google Docs formatting (supports headings #..######, lists -, *, 1., and bold text).tab_id
(TEXT, Optional): Optional: ID of the tab to target. If omitted, defaults to first tab.tab_title
(TEXT, Optional): Optional: Title of the tab to target (used if Tab ID is not provided).anchor_text
(TEXT, Optional): Optional: Insert content immediately after the paragraph that contains this text in the selected tab. If not provided, content is appended to the end of the tab.anchor_match_case
(BOOLEAN, Optional): Optional: When true, the anchor text match is case-sensitive.actions
(OBJECT, Optional): Available Actions:Issue | Solution |
---|---|
Authentication failed | Verify your OAuth credentials |
Rate limit exceeded | Reduce request frequency |
Data not found | Check permissions and data availability |
Connection timeout | Verify network connectivity |