Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

batch_update_doc

Execute multiple document edits in a single batch operation for Google Docs, including text insertion, formatting, table creation, and page breaks, ensuring atomic updates.

Instructions

Executes multiple document operations in a single atomic batch update.

Args: user_google_email: User's Google email address document_id: ID of the document to update operations: List of operation dictionaries. Each operation should contain: - type: Operation type ('insert_text', 'delete_text', 'replace_text', 'format_text', 'insert_table', 'insert_page_break') - Additional parameters specific to each operation type

Example operations: [ {"type": "insert_text", "index": 1, "text": "Hello World"}, {"type": "format_text", "start_index": 1, "end_index": 12, "bold": true}, {"type": "insert_table", "index": 20, "rows": 2, "columns": 3} ]

Returns: str: Confirmation message with batch operation results

Input Schema

NameRequiredDescriptionDefault
document_idYes
operationsYes
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "document_id": { "title": "Document Id", "type": "string" }, "operations": { "items": {}, "title": "Operations", "type": "array" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "document_id", "operations" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZatesloFL/google_workspace_mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server