word_add_password_protection
Add password protection to restrict editing in a Word document. Specify the file path and password; optionally set the restriction type to read-only, comments, tracked changes, or forms.
Instructions
Enforce a password-protected editing restriction (Word's 'Restrict Editing') on a Word document, via settings.xml w:documentProtection
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": {
"file_path": "<file_path>",
"password": "<password>"
},
"name": "word_add_password_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | Password required to remove the editing protection in Word | |
| file_path | Yes | Absolute path to the .docx file | |
| edit_restriction | No | Editing restriction to enforce while protected (default: 'readOnly') |