Split PDF
split_pdfSplit a PDF into multiple new PDF files by page ranges or every N pages, returning saved paths. Use when you need several output files; original PDF remains unchanged.
Instructions
Split one PDF into several new PDFs: one file per page range, or one every N pages. Use this when you want several output files; for a single file of chosen pages use extract_pdf_pages. Returns the list of saved paths. The input is not changed; give the password for an encrypted 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": {
"file": "<file>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| every | No | Split every N pages instead of using ranges. | |
| ranges | No | One file per range, e.g. ["1-3", "4-9", "10-"]. | |
| password | No | The PDF's current password, if it has one. | |
| output_dir | No | Folder for the parts. Defaults to the input’s folder. |