insert_table_row
Inserts a row into an existing Google Docs table above or below a specified row, using the table start index and row index.
Instructions
Insert a row into an existing table in a Google Doc.
Use get_doc_structure to find the table's startIndex and the row_index to insert relative to.
Args: doc_id: The Google Doc file ID. table_start_index: The startIndex of the table (from get_doc_structure). row_index: The row to insert relative to. insert_below: If True (default), insert below the specified row. If False, insert above it.
Returns: Confirmation with docId, table_start_index, and the row_index used.
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": {
"doc_id": "<doc_id>",
"table_start_index": "<table_start_index>",
"row_index": "<row_index>"
},
"name": "insert_table_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| row_index | Yes | ||
| insert_below | No | ||
| table_start_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||