sheets_protect
Protect specific ranges or entire sheets in Google Sheets to control editing permissions and prevent unauthorized changes.
Instructions
Protect a sheet or range. If range_a1 is None, protects the entire sheet.
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": "<spreadsheet>",
"sheet_name": "<sheet_name>"
},
"name": "sheets_protect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet | Yes | ||
| sheet_name | Yes | ||
| range_a1 | No | ||
| description | No | Protected | |
| warning_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |