split_pdf
Split a PDF into separate files by page range. Supports single pages, ranges like '1-3', or 'all'. Returns base64-encoded PDFs.
Instructions
Split a PDF file into multiple separate PDF files based on page ranges. Returns a JSON with base64-encoded PDFs for each selected page. Supports single pages (e.g., '1'), page ranges (e.g., '1-3'), and all pages (e.g., 'all').
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>",
"page_range": "<page_range>"
},
"name": "split_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the PDF file to split | |
| page_range | Yes | Page range to split - 'all', single page (e.g., '1'), or range (e.g., '1-3', '2-5') |