edit_spreadsheet
Edit cells or ranges, or append rows, in an Excel workbook (xlsx, xlsm, xls) into a new outputPath, keeping the original. Keeps styles, charts, images, merged cells, tables and VBA (never run); formulas recalculate where supported. Use it when edit_block refuses an in-place edit. Reports what was preserved.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>",
"edits": "<edits>"
},
"name": "edit_spreadsheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | ||
| deviceId | No | Computer name or id from list_devices. Optional with one computer online or a default set. | |
| inputPath | Yes | ||
| outputPath | Yes | ||
| workSessionId | No | Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work. |