extract_pages
Extract specific pages from a PDF file and save as a new PDF using page ranges or individual page selection.
Instructions
Extract specific pages from a PDF file and save as a new PDF. Supports page ranges and individual page selection.
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>",
"pages": "<pages>",
"output_path": "<output_path>"
},
"name": "extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | Pages to extract (e.g., '1-5', '3,7,9', '1,3-5') | |
| file_path | Yes | Path to the source PDF file | |
| output_path | Yes | Path where the extracted pages will be saved as a new PDF |