pdf_reorder_pages
Rearrange PDF pages by providing a comma-separated list of page numbers for the new order. Duplicate pages and form field preservation are supported.
Instructions
Reorder pages in a PDF. Specify the new page order as a comma-separated string (e.g. '3,1,2'). Duplicates are allowed. AcroForm fields are preserved. Set flatten:true to bake field values into static content.
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": {
"filePath": "<filePath>",
"pageOrder": "<pageOrder>",
"outputPath": "<outputPath>"
},
"name": "pdf_reorder_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| pageOrder | Yes | New page order as comma-separated 1-indexed numbers, e.g. '3,1,2,4' or '1,1,2' (duplicates allowed; up to 2000 pages) | |
| outputPath | Yes | Absolute path for the reordered output PDF | |
| flatten | No | Flatten the reordered form: bake field values into static content and remove interactivity. Defaults to false. |