set_document_protection
Restrict a Word document by setting protection to tracked changes, comments, read-only, or forms. Remove protection with 'none'. Optionally secure with a password.
Instructions
Set document protection in settings.xml.
Args: edit: Protection type — "trackedChanges", "comments", "readOnly", "forms", or "none" (removes protection). password: Optional password (hashed with SHA-512). Empty = no password.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edit | Yes | ||
| password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |