View one page of a PDF as an image
distill_page_imageRender one local PDF page as a PNG, or return a PNG/JPG/WebP file, for read-only visual inspection when a chart or image must be examined.
Instructions
Render one page of a local PDF as a PNG image (about 100 dpi), or return an image file (PNG, JPG, WebP) itself. Read-only: never modifies or uploads the file. Use it only for pages listed in visualPages by distill_file or distill_outline, and only when the question depends on the chart or image on that page: it costs far more tokens than the Markdown. One page per call (page is the physical page number, 1-based, as listed in visualPages.page). Fails with bad_request (other file types, page out of range), forbidden (outside allowed roots), too_large (over 100 MB), not_found or parse_failed.
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": {
"path": "<path>",
"page": "<page>"
},
"name": "distill_page_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Physical page number (1-based position in the PDF), as listed in visualPages.page; use 1 for an image file | |
| path | Yes | Absolute path, or relative to the server's working directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| bytes | Yes | ||
| width | No | ||
| height | No |