extract_pages
Copy chosen pages from a PDF into a new PDF in the order you specify, including repeated pages.
Instructions
Copy selected pages into one new PDF, in the order written ('3,1,2' reorders; '2,2' repeats).
output_path: must end in .pdf. Default: _extracted.pdf next to the input. overwrite: replace the output if it exists. Default false.
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>",
"pages": "<pages>"
},
"name": "extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | Yes | ||
| password | No | ||
| overwrite | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |