clearRange
Clears cell values in a Google Sheets range while preserving the cells and their formatting. Use it to reset content without deleting rows, columns, or styling.
Instructions
Clears all cell values in a range without deleting the cells themselves. Formatting is preserved.
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": {
"spreadsheetId": "<spreadsheetId>",
"range": "<range>"
},
"name": "clearRange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 notation range to clear (e.g., "A1:B10" or "Sheet1!A1:B10"). | |
| readHandle | No | Capability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio. | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. |