Extract pages
extract_pagesExtract specific pages from a PDF into a new PDF (pages are 1-indexed).
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>",
"page_numbers": "<page_numbers>"
},
"name": "extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The source PDF. | |
| page_numbers | Yes | Pages to keep, e.g. [1, 3, 5]. Order is preserved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||