Reorder the pages of a PDF
pdf_reorderReorder all pages of a PDF into a new file by specifying the exact page sequence; every page must appear exactly once.
Instructions
Call this tool to write a new PDF with pages in the order you give. The order must name every page exactly once, so nothing drops by accident; use pdf_pages for a subset. Pro.
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": {
"path": "<path>",
"order": "<order>",
"out_path": "<out_path>"
},
"name": "pdf_reorder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The source PDF | |
| order | Yes | The 1-based page numbers in their new order, e.g. [3,1,2] for a three-page file. Every page must appear exactly once | |
| out_path | Yes | Where to write the reordered PDF | |
| overwrite | No | Replace out_path if it exists. Default false |