write_cell
Write a value or formula to a specific cell in an Excel .xlsx/.xlsm file, returning the previous value.
Instructions
Write one value or formula to a cell in an .xlsx/.xlsm file. Returns the previous value.
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>",
"cell": "<cell>",
"value": "<value>"
},
"name": "write_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | Cell address, e.g. 'B3' | |
| path | Yes | Path to the spreadsheet file (absolute, or relative to the first allowed directory) | |
| sheet | No | Sheet name. Defaults to the first sheet. | |
| value | Yes | Value to write. Strings starting with '=' become formulas; null clears the cell. |