Split or extract pages
split_pdfSplit a PDF by page ranges. ranges is a list like ["1-2", "3", "4-end"]: each range becomes its own PDF. Use mode "extract" to put all the ranges into one PDF instead. Use mode "every" to make one PDF per page. Returns download links.
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 |
|---|---|---|---|
| mode | No | split (default): one PDF per range. extract: one PDF with all the chosen pages. every: one PDF per page. | |
| ranges | No | Page ranges, 1-based: "2", "1-3", "4-end". Not needed for mode "every". | |
| file_id | No | A file id from POST /api/v1/files or an earlier result. Use this, template_id or pdf_base64. | |
| pdf_base64 | No | The PDF, base64 encoded (max 15 MB). Prefer file_id for big files. | |
| template_id | No | A template id from list_templates. |