pdf_render_pages
Render PDF pages to images for vision-capable clients; output as files or return inline for direct model viewing.
Instructions
Render PDF pages to images so a vision-capable client can read scanned or image-only PDFs. Writes PNG/JPEG files and returns their paths; set inline:true to return image blocks the model can see directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| pages | No | Page range to render, e.g. '1-5,8'. Defaults to the first 50 pages. | |
| dpi | No | Render resolution in DPI (36–300). Defaults to 150. | |
| format | No | Output image format. Defaults to png. | |
| inline | No | Return rendered pages as inline image blocks the model can see directly instead of writing files. Max 5 pages; DPI is auto-capped so neither dimension exceeds 1500px. Defaults to false. | |
| outputDir | No | Directory for the output images: an absolute path is recommended; a relative path resolves against the server working directory. The directory must already exist. Defaults to the input PDF's directory. Ignored when inline is true. |