Split a PDF
pdf_splitSplit a PDF into separate files by comma-separated page ranges or one file per page, saving each result to a chosen output folder.
Instructions
Split one PDF into several new files: one per comma-separated range (mode "ranges"), or one per page (mode "pages"). Files are written to output_folder.
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": "<input>",
"output_folder": "<output_folder>"
},
"name": "pdf_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ranges | |
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| pages | No | Page numbers or ranges, such as "1, 3-5". Omit for every page. | |
| output_folder | Yes | Folder for the new files, inside an allowed folder; created if missing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputs | Yes |