Setup
If you haven’t set up Google OAuth yet, complete the Google OAuth Setup first.Enable the Google Docs API
In your Google Cloud project, navigate to APIs & Services → Library, search for Google Docs API, and click Enable.
Authorize Access
Available Actions
create_document: Create a new Google Doc with an optional titleget_document: Retrieve document metadata (title, revision, named ranges)read_content: Extract the plain-text or structured content of a documentinsert_text: Insert text at a specific index in the document bodydelete_content: Delete a range of content by start and end indexreplace_text: Find and replace text throughout the documentformat_text: Apply character formatting (bold, italic, font size, color) to a text rangeformat_paragraph: Apply paragraph styling (heading level, alignment, spacing, indentation) to a rangeinsert_table: Insert a table with a specified number of rows and columnscreate_list: Convert a range of paragraphs into a bulleted or numbered listbatch_update: Send multiple document update requests in a single API call
Example Usage
Once configured, you can ask your agent things like:- “Create a new document titled ‘Q2 Marketing Plan’”
- “Read the content of document ID 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms”
- “Insert a summary paragraph at the top of my report”
- “Replace all occurrences of ‘TBD’ with ‘Pending Review’ in this doc”
- “Format the title as Heading 1 and make it bold”
- “Add a 3-column table for the budget breakdown”