merge_cells
Merges a range of cells in a Google Sheet, with options to merge all, merge columns, or merge rows.
Instructions
Merge cells in a range
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>",
"sheet_id": "<sheet_id>",
"start_row": "<start_row>",
"end_row": "<end_row>",
"start_column": "<start_column>",
"end_column": "<end_column>",
"merge_type": "<merge_type>"
},
"name": "merge_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_row | Yes | Ending row index (exclusive) | |
| sheet_id | Yes | The ID of the sheet | |
| start_row | Yes | Starting row index (0-based) | |
| end_column | Yes | Ending column index (exclusive) | |
| merge_type | Yes | How to merge the cells | |
| start_column | Yes | Starting column index (0-based) | |
| spreadsheet_id | Yes | The ID of the spreadsheet |