split_pdf
Split a PDF into multiple PDFs by page ranges or fixed-size chunks. Output is a zip archive of the resulting files.
Instructions
Split a PDF into multiple PDFs by page ranges (e.g. "1-3,5-7") or into fixed-size chunks. Returns a .zip archive containing the resulting PDFs.
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_file": "<input_file>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | No | Page ranges to extract, e.g. "1-3,5-7". If omitted and fixed_range is set, splits into fixed-size chunks. | |
| input_file | Yes | Path to the PDF file to split. | |
| fixed_range | No | If set, splits the PDF into chunks of this many pages each. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |