Clear range
clear_rangeEmpty values, formulas, and optional formatting in an Excel cell range while keeping rows and columns intact. Use it to reset selected cells without deleting or shifting spreadsheet structure.
Instructions
Empty the cells in a range (values and/or formatting). Rows and columns stay in place.
To remove rows or columns and shift the rest, use delete_rows or delete_columns.
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": {
"sheet": "<sheet>",
"cell_range": "<cell_range>"
},
"name": "clear_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path or preloaded name (list_configured_files). Omit if only one file is preloaded. | |
| sheet | Yes | Sheet name (case-sensitive). | |
| backup | No | Save a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true). | |
| reason | No | Why; kept in the change log (XLSX_MCP_CHANGE_LOG=true). | |
| cell_range | Yes | A1-style range, e.g. "A1:D10". | |
| clear_styles | No | Reset formatting to the Normal style. | |
| clear_values | No | Remove values and formulas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||