delete_pages
Remove unwanted pages from a PDF by specifying page numbers or ranges, like '2,4-6'. Simplify document management by deleting specific pages.
Instructions
Delete specific pages from a PDF. E.g. pages "2,4-6" removes pages 2,4,5,6.
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": {
"file": "<file>",
"pages": "<pages>"
},
"name": "delete_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| pages | Yes | Page ranges to delete, like "2,4-6" (1-based) | |
| output_name | No | Output file path (defaults to same dir with suffix) |