Google Docs
Authentication: OAuth. See Magic Link for the runtime auth flow, or Application credentials to bring your own OAuth app.
Sample use cases
- Open the
Q2 Strategydoc and summarize the section on pricing. - Create a new doc in the
Engineering / RFCsfolder titled ‘Auth migration’ from this template. - Find every doc in
Shared drives / Saleslast edited over 90 days ago.
Available Tools
Insert an inline image at a specific location
Create a named range (bookmark) in a document
Delete a named range from a document
Create a header section at a section break in a document
Delete a header section from a document
Create a footer section at a section break in a document
Delete a footer section from a document
Create a new Google Docs document with optional title
Retrieve a Google Docs document by ID
Get the end index for appending content to a document
Insert an image into a table cell by table position
Insert text into a table cell by table position
Create and populate a table with data in one operation
Apply multiple updates to a document in a single operation
Insert text at a specific location in a document
Delete text from a specified range in a document
Find and replace all occurrences of text in a document
Apply text formatting to a range in a document
Apply paragraph formatting to a range in a document
Append text to the end of a document
Insert a table with specified rows and columns
Insert a new row into an existing table
Insert a new column into an existing table
Delete a row from an existing table
Delete a column from an existing table
Insert a footnote reference at the given index. The API creates a numbered reference and a corresponding footnote section at the page bottom; use inse…
Apply bullet or numbered list formatting to all paragraphs that overlap a range. Use bullet_preset to pick the list style.
Create a new tab in a Google Docs document
Remove bullet/numbered list formatting from all paragraphs that overlap a range. Paragraph text is preserved.
Delete a tab from a Google Docs document by tab ID. Use list_tabs to find tab IDs
Insert a section break at a specific index. Use NEXT_PAGE/EVEN_PAGE/ODD_PAGE to start a new page; CONTINUOUS to keep flow.
List all tabs in a Google Docs document, including tab IDs and titles
Merge a rectangular block of table cells into one. Specify the upper-left and lower-right cell positions. Common in header rows and summary tables.
Pin the first N rows of a table as headers that repeat at the top of every page break. Pass 0 to unpin all header rows.
Replace the content of a named range with new text. Named ranges auto-update their indices when surrounding content shifts, making them safer than rep…
Reverse a previous merge_table_cells operation, restoring the cells in the specified range to individual cells.
Set page margins, page size, or background color on the document. Provide only the fields you want to change.
Redefine a named style document-wide (HEADING_1 through HEADING_6, NORMAL_TEXT, TITLE, SUBTITLE).
Update section style (columns, separator, content direction, margins) over a range.
Update a tab’s properties (e.g. rename it) in a Google Docs document
Update visual styling on a single table cell - background color, borders, padding, vertical alignment.
Set width on one or more columns in a table. Use width_type=FIXED_WIDTH with width_pt for explicit widths, or EVENLY_DISTRIBUTED to mark the targeted…
Set minimum row height and/or overflow prevention on one or more rows in a table. At least one of min_row_height_pt or prevent_overflow must be set.