merge_cells
Combine cells in a spreadsheet range into one cell, merge columns vertically, or merge rows horizontally using the specified merge type.
Instructions
Merge cells in an A1 range.
merge_type: MERGE_ALL (one cell), MERGE_COLUMNS (merge each column
vertically), or MERGE_ROWS (merge each row horizontally).
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": {
"spreadsheet_id": "<spreadsheet_id>",
"range": "<range>"
},
"name": "merge_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| merge_type | No | MERGE_ALL | |
| spreadsheet_id | Yes |