Render PDF pages
render_pdf_pagesRender PDF pages to PNG or JPEG. DPI is 72 to 216. A page range such as 1-3,5 is optional. At most 24 pages and 25 MB of images. Send base64 or a public URL. Private addresses are refused. Returns image base64 and a ZIP when there is more than one page.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_pdf_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| url | No | Public URL of a PDF. Private and local addresses are refused. Provide data or url. | |
| data | No | PDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url. | |
| range | No | Pages to render, such as 1-3,5. Blank renders every page, up to 24. | |
| format | No | png | |
| quality | No | JPEG quality from 1 to 100. Ignored for PNG. | |
| filename | No | ||
| mimeType | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | Yes | ZIP of the images when there is more than one, otherwise null. | |
| images | Yes | ||
| pageCount | Yes |