extract_pages
Extract specific pages from a PDF into separate PDF files. Specify file path, page numbers, and output directory.
Instructions
Extract specific pages from a PDF into separate PDF files.
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>",
"pages": "<pages>",
"outputDir": "<outputDir>"
},
"name": "extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| pages | Yes | Array of page numbers to extract (1-based) | |
| outputDir | Yes | Directory where extracted pages will be saved | |
| prefix | No | Optional filename prefix for extracted pages (default: "page") |