sheets_protect_range
Prevent unauthorized edits to a spreadsheet range. Configure warning-only or strict editing restrictions for specific cells.
Instructions
Protect a range of cells from editing
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": "sheets_protect_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | The range to protect | |
| description | No | Description of the protection | |
| warningOnly | No | Whether to show warning only or prevent editing | |
| spreadsheetId | Yes | The ID of the spreadsheet |