insertTable
Inserts an empty table with a set number of rows and columns at a chosen character index in a Google Docs document, so you can add structured grids to a specific spot.
Instructions
Inserts an empty table with the specified number of rows and columns at a character index in the document.
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": {
"documentId": "<documentId>",
"rows": "<rows>",
"columns": "<columns>",
"index": "<index>"
},
"name": "insertTable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Number of rows for the new table. | |
| index | Yes | 1-based character index within the document body. Use readDocument with format='index' to inspect indices. | |
| tabId | No | The ID of the specific tab to insert into. Use listDocumentTabs to get tab IDs. If not specified, inserts into the first tab. | |
| columns | Yes | Number of columns for the new table. | |
| documentId | Yes | The document ID — the long string between /d/ and /edit in a Google Docs URL. | |
| readHandle | No | Capability returned by a previous readDocument call for this document (and tab). Required over HTTP on the 2026-07-28 runtime: it authorizes the write and pins it to the revision that read saw. Omit it on stdio to use that connection's most recent read. |