write_range
Write a 2D block of values into an Excel spreadsheet starting at a specified cell, enabling batch updates across multiple rows and columns in one operation.
Instructions
Write a 2D block of values (rows of cells) starting at a cell in an .xlsx/.xlsm file.
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": {
"path": "<path>",
"start_cell": "<start_cell>",
"values": "<values>"
},
"name": "write_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the spreadsheet file (absolute, or relative to the first allowed directory) | |
| sheet | No | Sheet name. Defaults to the first sheet. | |
| values | Yes | 2D array of rows to write | |
| start_cell | Yes | Top-left cell of the block, e.g. 'A2' |