extract_pages
Extracts specific pages from a PDF into a new document. Define page ranges like '1-3,5' to pull just the pages you need.
Instructions
Extract specific pages from a PDF into a new document.
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": "<file>",
"pages": "<pages>"
},
"name": "extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| pages | Yes | Page ranges like "1-3,5" (1-based) | |
| output_name | No | Output file path (defaults to same dir with suffix) |