sheets_protect_range
Protect a range in Google Sheets from editing. Optionally, allow edits but show a warning.
Instructions
Protects a range from editing, optionally as a warning only
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>",
"range": "<range>"
},
"name": "sheets_protect_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | The A1 notation range to protect | |
| description | No | Description of why the range is protected | |
| warning_only | No | If true, shows a warning but still allows editing | |
| spreadsheet_id | Yes | The ID of the spreadsheet |