protect_range
Protect a sheet or range to restrict editing, with options for warnings and allowed editors.
Instructions
Protect a range or entire sheet from editing.
Args: spreadsheet_id: The ID of the spreadsheet sheet: Sheet/tab name range: A1 notation range to protect. Omit to protect the entire sheet. description: Description of the protection warning_only: If True, shows a warning but allows editing editors: List of email addresses allowed to edit
Returns: Result of the protection operation
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>",
"sheet": "<sheet>"
},
"name": "protect_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet_id | Yes | ||
| sheet | Yes | ||
| range | No | ||
| description | No | ||
| warning_only | No | ||
| editors | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |