write_cell
Set a single cell's value or formula in an Excel .xlsx worksheet by specifying the file, sheet, cell address, and value; prefix formulas with '='.
Instructions
Set a single cell's value or formula. Start value with '=' for formulas (e.g. '=SUM(A1:A10)').
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": {
"file_path": "<file_path>",
"sheet": "<sheet>",
"cell": "<cell>",
"value": "<value>"
},
"name": "write_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | Cell address (e.g. 'A1', 'B5') | |
| sheet | Yes | Sheet name or 1-based index | |
| value | Yes | Value to set. Start with '=' for formulas. | |
| file_path | Yes | Absolute path to the .xlsx file |