protect_document
Set document protection to limit editing to read-only, comments, tracked changes, or forms, with an optional password.
Instructions
Protect the document with specified restrictions.
Args: protection_type: Type of protection: - 'readOnly': Document is read-only - 'comments': Only comments allowed - 'trackedChanges': Only tracked changes allowed - 'forms': Only form fields can be edited password: Optional password to protect the document
Returns: Success or error message
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "protect_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| protection_type | No | readOnly |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |