pdf_render_page
Render one PDF page to a PNG image at up to 300 DPI to read scanned pages, from a path, base64 data, or HTTPS URL; optionally save the image.
Instructions
Render one PDF page to a PNG image (dpi up to 300, default 110) and return it as an image, e.g. to read a scanned page. The PDF is a path in the root folder, base64 data, or an https url. Optionally also save the PNG inside the root folder (needs a writable server). Needs PDFium.
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": {
"page": "<page>"
},
"name": "pdf_render_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Resolution, 1 to 300 (default 110). | |
| url | No | An https:// URL to fetch the PDF from, instead of `path` (up to 8 MiB). | |
| data | No | Base64 PDF bytes, instead of `path` (up to 8 MiB). | |
| page | Yes | Page number, 1-based. | |
| path | No | PDF file, relative to the root folder. Give exactly one of path, data, url. | |
| save_as | No | Also save the PNG at this path relative to the root (needs --writable). | |
| overwrite | No | Replace `save_as` if it exists (default false). |