get_page_image
Render a datasheet page, element, caption, or region as a PNG at the needed resolution so an LLM can read tables, figures, and fine print from the source image.
Instructions
The original as a PNG image: an element, a caption, a region or a full page. Read the values from this image. An element, a caption or a region is rendered at 300 to 600 dpi when it fits max_px: prefer them, because a full page costs more input. A full page is correct for a table that fills the page. It is rendered at the resolution that fits max_px. A caption with no table or figure in the element map gives its full page. Gives a line with the page, the region, the dpi and the size, and the image.
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": {
"document": "<document>"
},
"name": "get_page_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | Or a region [x0, y0, x1, y1] in pt, origin at the top left of the page (the units of get_page_map). Needs page. | |
| page | No | The page number, from 1. Not necessary with element. | |
| max_px | No | The maximum long edge of the image in pixels (256 to 8000), for a full page and also for an element, a caption or a region: a large element gets less than 300 dpi when it does not fit (the result gives the dpi). 1600 is enough for a table that fills the page. Use more for small print, a fine drawing, or a large table at 300 dpi. | |
| caption | No | Or a caption label, for example "Table 57" or "Figure 3-1": the image shows this table or figure. A table that continues on the next pages gives one image for each page. | |
| element | No | An element ID from get_page_map or list_items, for example p7.T1: the image shows this element. | |
| document | Yes | The document: its reference from list_documents, project_status or add_document (the first 12 characters of its SHA-256). A longer SHA-256 prefix or the numeric document ID also works. |