Unlock PDF
unlock_pdfRemove a KNOWN open password and/or editing restrictions from a PDF. Does not crack unknown passwords. Only use on documents the user owns or may open.
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": {
"file": "<file>"
},
"name": "unlock_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The protected PDF. | |
| password | No | The current open password. Leave empty if the PDF only has restrictions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Facts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf). | |
| note | No | Anything the user should know about the result. | |
| text | No | Extracted text (pdf_to_text, ocr_pdf). | |
| files | Yes | Result files. Download them before expires_at; pass file_id to another tool to chain. |