clear_cells
Clear values from a specified cell range in an Excel sheet while keeping existing formatting. Use it to remove data without losing styles, borders, or layout.
Instructions
Clear cell values in a range (keeps formatting).
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>",
"range": "<range>"
},
"name": "clear_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | Range to clear (e.g. 'A1:C10') | |
| sheet | Yes | Sheet name or 1-based index | |
| file_path | Yes | Absolute path to the .xlsx file |