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
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') |