clear_range
Clears the contents of a rectangular cell range in an Excel worksheet. Specify the start and end cells to remove values from that block.
Instructions
Clear values from a rectangular range of cells.
Args: file_path: Path to workbook. sheet_name: Worksheet name. start_cell: Top-left cell of range to clear. end_cell: Bottom-right cell of range to clear.
Returns: str: Success message.
Raises: (Propagates exceptions from the underlying tools on I/O or invalid ranges.)
Notes: - Destructive: clears cell values (but not necessarily styles) — mention in API docs.
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_name": "<sheet_name>",
"start_cell": "<start_cell>",
"end_cell": "<end_cell>"
},
"name": "clear_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_cell | Yes | ||
| file_path | Yes | ||
| sheet_name | Yes | ||
| start_cell | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |