Delete PDF pages
pdf_remove_pagesDelete specified pages or ranges from a PDF and save the remaining pages as a new file. Provide input, page list, and output; at least one page must remain.
Instructions
Write a new PDF without the listed pages. At least one page must remain.
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_remove_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 |