globalise_view_document_ui
Open a document in an interactive viewer that pairs a zoomable IIIF scan with its line-numbered transcription, with optional search-term highlighting. Selecting transcription text sends it as context.
Instructions
Display a page for the user in an interactive scan-plus-transcription viewer. Shows a zoomable IIIF scan image beside its line-numbered transcription. Takes a document ID or URN; supports optional search-term highlighting. Selecting text in the transcription panel sends the selection to the assistant as a context note ("User selected text in document …: …").
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_view_document_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| viewUUID | No | Existing viewer session to preserve (in-viewer page navigation). When live, the same UUID is kept and the page is swapped. Omit on first open. | |
| 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") | |
| highlightTerms | No | Search terms to highlight in the transcription |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| urls | Yes | ||
| metadata | Yes | ||
| viewUUID | No | Viewer session UUID — pass to globalise_navigate_viewer to steer this open viewer. | |
| highlight | Yes | ||
| imageWidth | No | The scan's native pixel width (for region coordinate projection) | |
| navigation | Yes | ||
| imageHeight | No | The scan's native pixel height | |
| iiifImageUrl | Yes | ||
| transcription | Yes | ||
| archivalContext | No |