insert_doc_elements
Insert a table, list, or page break into a Google Doc at a specified position by selecting the element type and index.
Instructions
Insert a table, list, or page break into a Google Doc.
For plain text or inline markdown use modify_doc_text (with format_as_markdown=True for rich output). For images use insert_doc_image. For Drive-file chips use insert_doc_file_chip. Note: index 0 is automatically bumped to 1 (to skip the opening section break). Requires the documents OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| document_id | Yes | Target document ID. | |
| element_type | Yes | "table", "list", or "page_break". | |
| index | Yes | 0-based insertion index. Get stable positions from inspect_doc_structure. Index 0 is auto-bumped to 1. | |
| rows | No | Row count for a table. Required when element_type="table". | |
| columns | No | Column count for a table. Required when element_type="table". | |
| list_type | No | "UNORDERED" (bullets) or "ORDERED" (numbered). Required when element_type="list". | |
| text | No | Seed text for a list item. Defaults to "List item" when list_type is set but text is omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |