Extract PDF pages
pdf_extract_pagesExtract selected pages from a PDF and combine them into a new PDF in your specified order, without overwriting existing files.
Instructions
Copy the listed pages, in the order listed, into one new PDF.
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_extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| pages | Yes | Page numbers or ranges, such as "1, 3-5". | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| pages | Yes | ||
| output | Yes |