globalise_navigate_viewer
Zooms or pans an already-open page viewer to a selected scan region, directing the user’s view to a detail; requires a viewUUID from a prior view call.
Instructions
Zooms or pans the user's already-open page viewer to a region. Use it to steer the user's view to a detail. Requires a viewUUID from a prior globalise_view_document_ui call (the viewer must be open). Not for opening the viewer — use globalise_view_document_ui. Not for visual analysis — use globalise_inspect_page_image (which also zooms the viewer whose viewUUID you pass).
By default, region coordinates are in full-image space (percentages or pixels of the original scan), not relative to the current viewport — the same pct:x,y,w,h used in globalise_inspect_page_image targets the identical area here. Exception: when a command includes relativeTo, region is interpreted in that inspected crop's local coordinate space.
Coordinates need to come from an inspected image: the scan's layout is unknown until globalise_inspect_page_image has returned it, so inspect the target area first and reuse (or refine) those coordinates here.
Region formats: 'pct:x,y,w,h' (percentage of the full scan), 'crop_pixels:x,y,w,h' (pixels of the full scan — bound with nativeWidth/nativeHeight from globalise_inspect_page_image; when used with relativeTo + relativeToSize it is instead pixels within that crop), 'x,y,w,h' (legacy IIIF pixels), or 'full' | 'square'. Out-of-bounds regions are rejected with a recovery hint — correct and retry.
Coordinate shortcut: to zoom to a sub-region of a prior inspect crop, pass relativeTo with the crop's region string and give region in crop-local coordinates (pct: directly, or crop_pixels: with relativeToSize:{width:cropPixelWidth,height:cropPixelHeight}) — the server projects to full-image space deterministically.
The deliveryState field says whether the iframe drained the commands immediately (delivered_recently), the viewer exists but has not polled recently so the commands are queued (queued_waiting_for_viewer — typical when scrolled offscreen), or no viewer has connected yet (no_live_viewer_seen). In the queued case the command is preserved server-side and applies when the viewer resumes polling — a normal delivery state, not a failure. no_live_viewer_seen is normal in the first few seconds after globalise_view_document_ui returns (the widget iframe starts polling only once the host renders it) — the queued commands apply on its first poll, so there is no need to wait or re-send. An unknown or expired viewUUID is a different, explicit error (sessions expire after ~30 min idle; re-open with globalise_view_document_ui). Host caveat: the reverse channel requires the host's MCP Apps bridge to support app-initiated tool calls (serverTools) — on hosts without it the iframe never polls and queued commands are never delivered; the response says so once the viewer is >30s old; then give the user a viewer link (globalise_inspect_page_image is for reading the detail yourself).
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": {
"viewUUID": "<viewUUID>",
"commands": "<commands>"
},
"name": "globalise_navigate_viewer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | Commands to execute in the viewer, in order | |
| viewUUID | Yes | Viewer UUID from a prior globalise_view_document_ui call |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| queued | Yes | ||
| viewUUID | Yes | ||
| documentId | No | Document ID of the page in this viewer session. | |
| imageWidth | No | ||
| imageHeight | No | ||
| lastPolledAt | No | ISO timestamp of the iframe's last poll. Absent if the iframe has never polled this session. | |
| deliveryState | No | Server's view of command delivery: delivered, queued for an existing-but-offscreen viewer, or no viewer ever connected. | |
| regionRecovery | No | Out-of-bounds recovery hint. Present only on a region-out-of-bounds error — mirrors the recovery payload the text channel renders, so a structuredContent reader can self-correct without parsing prose. | |
| pendingCommandCount | No | Commands sitting in the queue that the iframe has not yet drained. | |
| recentlyPolledByViewer | No | True if the iframe polled within the last 5s. |