Split a PDF
split_pdfExtract a page range into one PDF, or split into single pages or chunks of N. Send base64 or a public URL. Private addresses are refused. Returns PDF base64 and a ZIP when there are several files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL of a PDF. Private and local addresses are refused. Provide data or url. | |
| data | No | PDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url. | |
| mode | No | extract | |
| name | No | document.pdf | |
| every | No | Used when mode is chunks. | |
| range | No | Pages to keep, such as 1-3,5. Blank keeps every page. | |
| filename | No | ||
| mimeType | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | Yes | ZIP of the PDFs when there is more than one, otherwise null. | |
| files | Yes | ||
| pageCount | Yes |