Organize PDF pages
pdf_organizeReorder, delete, or duplicate pages in a PDF by listing the pages to keep in the order you want, then write the rebuilt file locally.
Instructions
Rebuild a PDF keeping only the pages you list, in the order you list them. Reordering, deleting and duplicating are all the same operation: a page you omit is dropped, a page you move is reordered, and a page listed twice is duplicated. 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>",
"pages": "<pages>",
"output": "<output>"
},
"name": "pdf_organize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Replace the output file if it already exists | |
| input | Yes | Path to the input PDF | |
| pages | Yes | Pages to KEEP, in the order wanted, 1-based. e.g. "3,1,5-8". Order matters; repeat a number to duplicate that page. | |
| output | Yes | Path to write the organized PDF |