globalise_inspect_page_image
Fetch page scan image bytes for your own visual analysis, either the whole page or a zoomed region, to read details and re-transcribe garbled HTR passages.
Instructions
Returns page-scan image bytes for the assistant's own visual analysis. Fetches the scan (base64) — whole page or a region of it. The image is for your own analysis; to show the page to the user, use globalise_view_document_ui. Not for finding pages: use globalise_search_transcriptions. Use region 'full' (default) to see the whole page, or a region to zoom into details: read a specific passage, a name, a numeral, marginalia, seals, or stamps. Call it when the user highlights a region in the document viewer — a chat message or context note like "[Highlight: region pct:31.2,18.4,22.0,6.1 on document NL-HaNA_1.04.02_9966_0106 in viewer 3f2b…]" — passing that documentId and region verbatim, and the UUID after 'in viewer' as viewUUID. Region coordinates: 'pct:x,y,w,h' (percentage of the full image, recommended), 'crop_pixels:x,y,w,h' (pixels of the full image — use with nativeWidth/nativeHeight from a prior response), or 'x,y,w,h' (legacy IIIF pixels). The response includes nativeWidth/nativeHeight (the scan's true pixel size) and cropPixelWidth/cropPixelHeight (the returned crop's size). To read a small hand, request a tighter region rather than a bigger size: size is clamped per page shape to what arrives intact, and anything beyond that is downscaled before it reaches the assistant, so a narrower crop raises pixels-per-letter where a larger size raises nothing. A clamp is reported in note. quality 'gray' can help with faint ink. The corpus transcriptions are machine HTR: use this tool to re-transcribe a specific passage as a second opinion where the HTR looks garbled (strongest on short passages, proper names, numerals, and marginalia; on long dense text the HTR is often the better reading — say so). Transcribe what you actually see and flag uncertain readings. Especially valuable on non-Latin-script pages (Persian, Tamil, Chinese, ...), where the Latin-script HTR is known-unreliable. Auto-navigation: pass viewUUID (from a highlight message or the globalise_view_document_ui result) and the viewer zooms to the inspected region (navigateViewer defaults to true); a local (stdio) server also finds an open viewer for the page without it. Use globalise_navigate_viewer separately to steer the user's open viewer to a region without fetching bytes for your own analysis.
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": {
"documentId": "<documentId>"
},
"name": "globalise_inspect_page_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Width of the returned image in pixels (its longer edge when the page's dimensions are unavailable) (200-1988). Omit it to fit the page automatically (up to 1568) — recommended. Whatever you pass is clamped per page shape so the crop is never upscaled and never exceeds what the model accepts intact: a larger size is downscaled before the model sees it, so to read a small hand request a tighter region, not a bigger size. Sizes align to multiples of 28 for clean coordinate handling. | |
| region | No | IIIF region: 'full' (default), 'square', 'pct:x,y,w,h' (percentage of the full image), 'crop_pixels:x,y,w,h' (pixels of the full image — use with nativeWidth/nativeHeight from a prior response), or 'x,y,w,h' (legacy IIIF pixels). E.g. 'pct:0,60,40,40' for the bottom-left 40%. | full |
| quality | No | Image quality — 'gray' can help read faint ink or inscriptions | default |
| rotation | No | Clockwise rotation in degrees | |
| viewUUID | No | Viewer session to steer — from a highlight message ("… in viewer <uuid>") or a globalise_view_document_ui result. Pass it to auto-zoom that viewer. When omitted, a local (stdio) server finds an open viewer for this page; a remote (HTTP) server does not. | |
| documentId | Yes | Document ID or URN (e.g., "NL-HaNA_1.04.02_9966_0106" or "urn:globalise:NL-HaNA_1.04.02_9966_0106") | |
| navigateViewer | No | Auto-navigate the open viewer to the inspected region (no effect when region is 'full' or no viewer is open). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Caveats about how this result was computed — e.g. a requested size clamped down because the region has no more real pixels, or because anything larger would be downscaled before the assistant sees it (a tighter region is then the way to more detail). | |
| scan | No | ||
| error | No | ||
| region | Yes | ||
| quality | No | ||
| rotation | No | ||
| viewUUID | No | The active viewer session this inspect targeted (for follow-up globalise_navigate_viewer calls) | |
| inventory | No | ||
| viewerUrl | No | Web viewer deep link for the whole page | |
| cropRegion | No | The region as sent to the IIIF server (crop_pixels: prefix stripped) | |
| documentId | Yes | ||
| fetchTimeMs | No | ||
| nativeWidth | No | ||
| nativeHeight | No | ||
| requestedSize | No | Effective size after the never-upscale and vision-budget clamps | |
| cropPixelWidth | No | Actual pixel width of the returned crop (read from the bytes) | |
| regionRecovery | No | Out-of-bounds recovery hint — retry with clampedTo or a corrected box within validRange. | |
| cropPixelHeight | No | ||
| viewerNavigated | No | True only when the open viewer is actively polling and the auto-zoom was delivered. When the zoom was merely queued (iframe not polling), viewerZoomQueued is true instead. | |
| viewerZoomQueued | No | True when the auto-zoom command was queued but the viewer iframe has not polled recently — it applies if/when the iframe polls. On hosts whose app bridge does not support server tools, queued commands are never delivered. |