set_merge
Merge cells into one area or unmerge them in a specified A1 range of an open Excel worksheet, optionally merging each row separately.
Instructions
Merge or unmerge 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": {
"range": "<range>",
"action": "<action>"
},
"name": "set_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 range address. | |
| across | No | merge: merge each row separately instead of one area. Default false. | |
| action | Yes | Whether to merge or unmerge. | |
| sheetName | No | Worksheet name. Defaults to the active worksheet. | |
| workbookId | No | Target workbook ID from list_workbooks. Optional when only one workbook is connected. |