Split PDF
split_pdfSplit a PDF into several files of N pages each, saving parts to a folder while leaving the original unchanged and never overwriting existing files.
Instructions
Split a PDF into several files of N pages each (1 = one file per page), written into a folder. Returns the list of files. The input is not modified and existing files are never overwritten. To keep a custom page range as one file use extract_pdf_pages instead.
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>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the PDF. | |
| password | No | Password for a PDF that asks for one when opened. Used only on this machine. | |
| output_dir | No | Folder for the parts. Defaults to a new folder beside the input named <file>-split. | |
| pages_per_file | No | Pages in each output file. Default 1. |