Edit a PDF
edit_pdfReorder, rotate, remove, or split PDF pages to produce a new document. Apply page operations to fix page order or extract specific pages.
Instructions
Reorder, rotate, remove or split out pages of a single document, producing a new document. operations is a list of page instructions; each entry names a source page and what to do with it. Consult the Paperless API docs for the exact operation shape before using this.
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": {
"documents": "<documents>",
"operations": "<operations>"
},
"name": "edit_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documents | Yes | Exactly one document ID. | |
| operations | Yes | ||
| delete_original | No | Irreversible — confirm first. | |
| update_document | No | Replace the existing document instead of creating a new one. | |
| include_metadata | No | Carry metadata over to the result. |