Insert a table
docs_tableInsert a table into a Google Doc and optionally fill its cells, using dry-run to preview requests before applying.
Instructions
Insert a table, optionally populating its cells. Populating costs a second round trip, because cell indices do not exist until the table does. Supports dryRun.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": "<document>",
"rows": "<rows>",
"columns": "<columns>"
},
"name": "docs_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id or title, for documents with several tabs. Reads default to the first tab; writes to a multi-tab document REQUIRE this rather than guessing. Get ids from docs_describe. | |
| rows | Yes | ||
| index | No | Where to insert. Omit to append at the end of the body. | |
| dryRun | No | Return the exact requests that would be sent, in the order they would be applied, and send nothing. | |
| values | No | Cell text, row-major. Written in a second pass after the table exists, since cell indices are not known until then. | |
| account | No | Google account to act as. Optional when one is authorised or a default is set. | |
| columns | Yes | ||
| document | Yes | Document URL or file id. Both accepted. |