Skip to main content

Overview

Integration for Google Docs. Through Langdock’s integration, you can access and manage Google Docs directly from your conversations.
Authentication: OAuth Category: Productivity & Collaboration Availability: All workspace plans

Available Actions

Create document

google_docs.create_document
Create a new Google Docs document with a title and optionally place it in a specific folder Requires Confirmation: No Parameters:
  • title (TEXT, Required): The title for the new document. This will be shown in Google Drive and at the top of the document window.
  • targetFolderId (TEXT, Optional): Optional: The ID of the Google Drive folder where the document should be created. If not provided, the document will be created in the root of My Drive.
Output: Returns the operation result

Get document

google_docs.get_document
Retrieves a Google Docs document. Requires Confirmation: No Parameters:
  • documentId (ID, 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 formatting
  • metadataOnly (BOOLEAN, Optional): When true, returns only the document metadata without the full content
  • includeTabsContent (BOOLEAN, Optional): When true, returns all tabs with their content. When false or unspecified, returns content from the first tab only
Output: Returns the operation result

Get tab

google_docs.get_tab
Retrieves a specific tab from a Google Doc. Specify the tab by name, position, or ID. Requires Confirmation: No Parameters:
  • documentId (ID, Required): The ID of the Google Doc containing the tab. This is the string of characters in the URL after ‘document/d/’
  • tabTitle (TEXT, Optional): The title/name of the tab to retrieve. Supports flexible matching: exact match first, then partial/contains matching (case-insensitive)
  • tabId (TEXT, Optional): The ID of the tab to retrieve. Use this if you have the tab ID from a previous Get Document call
  • tabIndex (TEXT, Optional): The position of the tab to retrieve (1 = first tab, 2 = second tab, etc.)
Output: Returns the operation result

List Tabs

google_docs.list_tabs
Retrieves a list of all tabs in a Google Doc with their IDs, names, and positions. Use this to discover available tabs before retrieving specific tab content. Requires Confirmation: No Parameters:
  • documentId (TEXT, Required): The ID of the Google Doc to list tabs from. This is the string of characters in the URL after ‘document/d/’
Output: Returns the operation result

Search file

google_docs.search_file
Search for Google Docs documents in your Google Drive using flexible filters such as document name, owner, modification date, folder, and sharing status Requires Confirmation: No Parameters:
  • 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 owner
  • modifiedAfter (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 folders
  • maximumResults (TEXT, Optional): The maximum number of documents to return. Leave blank to use the default (5000). The maximum allowed is 10,000
Output: Returns the operation result

Update document

google_docs.update_document
Update a Google Docs document Requires Confirmation: No Parameters:
  • documentId (ID, 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: Text Operations Inserting Text You can insert text into a document in two ways. The first approach uses a specific index position where you know content already exists. Provide the exact character index and the text string you want to insert. For example, inserting at index 5 w…
Output: Returns the operation result