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
Name | Required | Description | Default |
---|---|---|---|
document_id | Yes | ||
operations | Yes | ||
user_google_email | Yes |