Extract PDF pages
extract_pdf_pagesMake a new PDF that contains only the chosen pages. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.
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": {
"pages": "<pages>"
},
"name": "extract_pdf_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | Pages to keep, e.g. "1-3,7" (1-based) | |
| file_url | No | Public https:// link to the file (preferred, up to 150 MB). Must be directly downloadable. | |
| filename | No | Original file name, e.g. report.pdf | |
| file_base64 | No | The file content as base64 (only for small files, max 10 MB). Use instead of file_url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| file_name | Yes | ||
| download_url | Yes | Link to download the result | |
| expires_in_minutes | Yes | The link stops working after this time (or 3 minutes after the first download) |