pdf_extract_pages
Extract selected pages from a PDF into a new PDF file. Specify page ranges like 1,3,5-7 and an output path to create a focused document.
Instructions
Extracts specific pages into a new PDF. [Input: PDF (.pdf) | Output: PDF (.pdf)]
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": {
"input": "<input>",
"pages": "<pages>",
"output": "<output>"
},
"name": "pdf_extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The input PDF file path. | |
| pages | Yes | The pages to extract, e.g., '1,3,5-7'. | |
| output | Yes | File path for the extracted output. |