split_pdf
Extract specified page ranges from a PDF file into a new PDF using memory-efficient pointer copying.
Instructions
Creates a new PDF containing only the specified page ranges from the source PDF. This operation is extremely memory efficient as it copies C-level pointers rather than re-encoding the content.
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": {
"filepath": "<filepath>",
"page_ranges": "<page_ranges>",
"output_filename": "<output_filename>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Absolute path to the source PDF file | |
| page_ranges | Yes | Comma-separated list of page ranges (e.g., '1-5, 8, 11-13') | |
| output_filename | Yes | Absolute path where the output PDF should be saved |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |