Insert a table
insert_tableInsert a rows-by-columns table into a Google Doc, optionally filled with cell text, at a specific position (top, end, or after a text anchor).
Instructions
Insert a rows×columns table, optionally populated from a 2D array of cell text. Position via at (top/end/or a unique text anchor, default end). A direct edit, not a tracked suggestion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | "top", "end", or a unique text snippet to insert after (default end) | |
| tab | No | Target a specific tab by tabId or title (from list_tabs). Defaults to the first tab. | |
| data | No | row-major cell text, e.g. [["A","B"],["1","2"]] | |
| rows | Yes | ||
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| columns | Yes | ||
| documentId | Yes | ||
| headerShade | No | hex background color for the first row, e.g. #f1f3f4 | |
| columnWidths | No | fixed width per column, in points |