Skip to main content

Batch update document

Action ID: tools.google_docs.batch_update_document Apply multiple updates to a Google Doc in a single request. Reference: https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/batchUpdate

Secrets

Optional secrets:
  • google_docs_oauth: OAuth token GOOGLE_DOCS_SERVICE_TOKEN.

Input fields

document_id
string
required
ID of the document to update.
requests
array[object]
required
List of Docs API request objects to apply.
write_control
object | null
Optional write control configuration (e.g., requiredRevisionId).Default: null.

Create document

Action ID: tools.google_docs.create_document Create a new Google Doc. Reference: https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/create

Secrets

Optional secrets:
  • google_docs_oauth: OAuth token GOOGLE_DOCS_SERVICE_TOKEN.

Input fields

title
string | null
Optional document title.Default: null.

Get document

Action ID: tools.google_docs.get_document Retrieve a Google Doc with optional suggestions view mode. Reference: https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/get

Secrets

Optional secrets:
  • google_docs_oauth: OAuth token GOOGLE_DOCS_SERVICE_TOKEN.

Input fields

document_id
string
required
ID of the document to fetch.
suggestions_view_mode
string | null
How to display suggestions in the response.Default: null.