Split a PDF
split_pdfUse this when the user wants to split a PDF into several files, break a PDF into parts, extract page ranges as separate PDFs, split in groups of N pages, or save each page as its own PDF. Takes one attached PDF and one of: ranges (each item becomes one file, e.g. ["1-3", "4-end"]), every_n_pages, or each_page. Returns a ZIP of up to 50 PDFs, plus separate links when there are 10 parts or fewer, and checks each part's page count. Does not open password-protected PDFs and flattens form fields. Do not use for combining several PDFs (use merge_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": {
"file": "<file>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to split, e.g. handbook.pdf. | |
| ranges | No | One item per output file, e.g. ["1-4", "5-12", "13-end"]. An item may list several ranges: "1-2, 9". | |
| each_page | No | true: one PDF per page, e.g. true. | |
| every_n_pages | No | Make a new file in groups of N pages, e.g. 2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| check | Yes | ||
| notes | Yes | ||
| parts | Yes | ||
| downloads | Yes | ||
| parts_count | Yes | ||
| parts_shown | No | ||
| source_pages | Yes | ||
| expires_in_hours | Yes |