Connect AI Agents to Google Docs

Unlock Google Docs so agents can create and manage documents

Actions

Insert Inline Image

Inserts an image from a given URI at a specified location in a Google Doc as an inline image.

Insert Page Break

Inserts a page break into a Google Document to start content on a new page.

Insert Table in Google Doc

Inserts a table into a Google Document at a specific location or at the end of a segment (body, header, footer).

Insert Table Column

Inserts a new column into a table in a Google Document at a specified location.

Insert Text into Document

Inserts a string of text at a specified location within a Google Document.

List Charts from Spreadsheet

Retrieves a list of charts with ids and metadata from a Google Sheets spreadsheet for embedding into Docs.

Replace All Text in Document

Replaces all occurrences of a specified text string throughout a Google Document.

Replace Image in Document

Replaces a specific image in a Google Document with a new image from a URI.

Unmerge Table Cells

Unmerges previously merged cells in a table within a Google Document.

Update Document Style

Updates overall document style such as page size, margins, and default text direction.

Update Table Row Style

Updates the style of a table row (e.g., minimum row height or header rows) in a Google Document.

Create a document

Creates a new Google Docs document with the provided title and optional initial text; returns the document's id and metadata.

Get document by id

Retrieves an existing Google Document by its id; errors if the document is not found.

Search Documents

Searches for Google Documents using various filters including name, content, and date ranges.

Update Document Markdown

Replaces the entire content of an existing Google Document with new Markdown text; requires edit permissions.

Update existing document

Applies programmatic edits (insert, delete, formatting) to a specified Google Doc using the batchUpdate API.