split_pdf
Split a PDF into separate files by comma-separated page ranges, such as 1-3,5,7-, while leaving the original untouched and checking output names before writing.
Instructions
Split a PDF into several files. Each comma-separated part of ranges becomes one file, e.g. '1-3,5,7-' makes three files (pages 1-3, page 5, page 7 to the end). Files are named _part_p.pdf. The original is untouched. All names are checked before anything is written, so a conflict never leaves a half-done split.
output_dir: default is the input's folder. Created if missing. overwrite: replace existing outputs. Default false.
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": {
"path": "<path>",
"ranges": "<ranges>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| ranges | Yes | ||
| password | No | ||
| overwrite | No | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |