split_pdf
Split a PDF into multiple files by defining page ranges. Specify ranges like '1-5' to extract sections or chapters into separate documents.
Instructions
Split PDF into multiple files based on page ranges.
Args:
file_path: Path to the source PDF file
split_ranges: List of page ranges (e.g., ["1-5", "6-10", "11-15"])
output_dir: Output directory (defaults to source file directory)
prefix: Output file prefix (defaults to source filename)
Returns:
JSON string with split operation results and output file information
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": {
"file_path": "<file_path>",
"split_ranges": "<split_ranges>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| split_ranges | Yes | ||
| output_dir | No | ||
| prefix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |