Clear values
clear_valuesClear cell contents and formulas from one or more A1 ranges in a single call while preserving formatting, data validation, notes, conditional formats, and merges.
Instructions
Empties the VALUES of one or more A1 ranges in a single call — cell contents and formulas are gone (no undo through the API), while formatting, data validation, notes, conditional formats and merges all stay. To also remove formatting use format_cells or raw_request; to delete whole rows/columns (not just their content) use manage_dimensions action=delete.
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": {
"spreadsheet_id": "<spreadsheet_id>",
"ranges": "<ranges>"
},
"name": "clear_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | Yes | The A1 ranges to clear. | |
| spreadsheet_id | Yes | The spreadsheet id — the long id from the URL (docs.google.com/spreadsheets/d/<spreadsheetId>/edit) or from create_spreadsheet / search_spreadsheets output. |