Back to tools

AI Agent Tool

Google Docs API logo

Google Docs API

REST API for programmatically creating and editing Google Docs documents with structured content updates.

Document Management APICommunity

developers.google.com

•

One-click Login

About Google Docs API

The Google Docs API provides a REST interface for reading and writing Google Docs files. Developers use it to create documents programmatically, insert or replace text, manage named ranges, apply formatting, and work with document structure such as headers, tables, and inline objects. It uses a batchUpdate model that applies multiple changes atomically in a single request. It is commonly used to generate reports, populate document templates, and automate content workflows. The API is free to use and covered by Google Workspace quotas.

AI Agent Use Cases

- Create new Google Docs documents programmatically

- Read full document structure including paragraphs, tables, and inline objects

- Atomic batchUpdate for inserting, deleting, and formatting content in one request

- Named ranges for marking and later updating specific document sections

- Tab support for creating and organizing multi-tab documents

- Integration with Google Drive API for file management

Available Actions

These are the specific actions that AI agents can perform with this tool

Inputs

documentId

The ID of the document to update.

requests

A list of updates to apply to the document.

writeControl

Provides control over how write requests are executed.

Inputs

title

The title of the document.

Inputs

fileId

The ID of the file to delete.

supportsAllDrives

Whether the requesting application supports both My Drives and shared drives.

Inputs

documentId

The ID of the document to retrieve.

suggestionsViewMode

The suggestions view mode to apply to the document.

includeTabsContent

Whether to populate the Document.tabs field instead of text content fields.

Inputs

documentId

The ID of the document to be updated

requests

A list of update requests to apply to the document