split
Extract specific page ranges from a PDF into separate files. Specify ranges like '1-3,5' to create new PDFs with only those pages.
Instructions
Split a PDF into separate files by page range. E.g. pages "1-3,5" extracts pages 1,2,3,5.
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": "split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| pages | Yes | Page ranges like "1-3,5,7-9" (1-based) | |
| output_name | No | Output file path (defaults to same dir with suffix) |