set_worksheet_protection
Enable or disable protection for a specified worksheet, with optional password and capability flags, to control allowed user actions in Excel.
Instructions
Enable or disable worksheet protection with optional capability flags.
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": {
"filepath": "<filepath>",
"sheet_name": "<sheet_name>"
},
"name": "set_worksheet_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| enabled | No | ||
| options | No | ||
| filepath | Yes | Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing. | |
| password | No | ||
| sheet_name | Yes | ||
| include_changes | No |