sheets_add_protected_range
Add a protected range in Google Sheets to restrict editing to specific users. Set warning-only mode to allow edits with a warning, or fully lock cells for listed editors.
Instructions
Protect a cell range from editing. warning_only=False restricts editing to editor_emails.
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_id": "<sheet_id>",
"start_row": "<start_row>",
"end_row": "<end_row>",
"start_col": "<start_col>",
"end_col": "<end_col>"
},
"name": "sheets_add_protected_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_col | Yes | ||
| end_row | Yes | ||
| sheet_id | Yes | ||
| start_col | Yes | ||
| start_row | Yes | ||
| description | No | ||
| warning_only | No | ||
| editor_emails | No | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |