Password-protect a PDF
pdf_protectEncrypt a PDF with AES-256 to require a password for opening. Processing stays local, and the password is never transmitted or recoverable.
Instructions
Encrypt a PDF with AES-256 so it cannot be opened without the password. Only AES-256 is offered — 40-bit and 128-bit are classed as weak crypto. The password is used locally and never transmitted; it also cannot be recovered, so it must be stored somewhere safe. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
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": {
"input": "<input>",
"output": "<output>",
"password": "<password>"
},
"name": "pdf_protect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Replace the output file if it already exists | |
| input | Yes | Path to the input PDF | |
| noCopy | No | Disallow text/graphic extraction (accessibility extraction stays permitted) | |
| output | Yes | Path to write the protected PDF | |
| noPrint | No | Disallow printing (enforced by the reader, not the encryption) | |
| noModify | No | Disallow editing and form filling | |
| password | Yes | Password required to open the document |