Password-protect a PDF
pdf_protectEncrypt a PDF copy with AES-256 to require a password for opening, using only the password the user provided for this purpose.
Instructions
Encrypt a copy with AES-256 so it needs a password to open. Only use a password the user gave you for this purpose.
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>",
"password": "<password>",
"output": "<output>"
},
"name": "pdf_protect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. | |
| password | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| pages | Yes | ||
| output | Yes |