merge_table_cells
Merge a rectangular range of cells in an existing Google Doc table into one cell, using document ID, table start index, and row/column coordinates. Specify row and column spans to control the merged area.
Instructions
Merge a rectangular range of cells in an existing table into one cell.
Use get_doc_structure to find the table's startIndex and the row/column of the merge range's top-left (anchor) cell. Merging doesn't delete content or shift character indices: cells covered by the merge remain physical entries in the doc, they're just no longer independently addressable in the rendered table.
Args: doc_id: The Google Doc file ID. table_start_index: The startIndex of the table (from get_doc_structure). row_index: Zero-based row of the merge range's top-left cell. column_index: Zero-based column of the merge range's top-left cell. row_span: Number of rows the merged cell should span (default 1). column_span: Number of columns the merged cell should span (default 1).
Returns: Confirmation with docId, table_start_index, row_index, column_index, row_span, and column_span.
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>",
"column_index": "<column_index>"
},
"name": "merge_table_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| row_span | No | ||
| row_index | Yes | ||
| column_span | No | ||
| column_index | Yes | ||
| table_start_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||