page_show
Creates or replaces an HTML page in Scribe and displays it immediately, letting agents present or update visual tabs by reusable key without separate open or refresh steps.
Instructions
Show an HTML page in Scribe: creates it, or replaces the page with the same key (open or closed). Pass html (a document or fragment) or htmlPath (a local file; use it for large pages in Code mode). This alone shows the page; no separate open or refresh. For a small change to an existing page, use page_patch. May return a short problems list from the first render (also in the background); line uses page_read numbering. A timeout omits problems.
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": {
"title": "<title>"
},
"name": "page_show"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Stable page identity, e.g. sprint-notes (stored as scribe:sprint-notes). Reuse it to update the same page. | |
| pin | No | Pin the tab so Clear/close-unpinned keeps it. | |
| base | No | Start from another page: its HTML with your html placed in its element marked data-slot (else its <main>, else its <body>). Use it when the user names a starter page. State and assets are not copied. | |
| html | No | HTML document or fragment. Omit when passing htmlPath. | |
| state | No | Initial scribe.state, applied only when the page has no state yet. | |
| title | Yes | Tab title. | |
| assets | No | Local image or sound (mp3, ogg, wav, m4a) files to attach; reference them in the HTML as asset:name. Re-showing without assets keeps the attached ones. | |
| folder | No | Library folder for a new page, e.g. "CLIMS/Releases"; never moves an existing page. Pass an existing path from library_folders, or a new one only when the user asked. Default: the home folder of the space your chat was started in (library_folders names it), else the Library root. | |
| plugins | No | Page plugin dependencies. Writes a scribe-plugins meta tag; grants no access. | |
| replyTo | No | Where the page's scribe.reply(data, { summary }) goes on submit. On a form for a Kanban card ({ page: board, card }), it posts on the card as the user's comment and reaches the card's chat; elsewhere it is a reply event for page_wait. null clears it. | |
| htmlPath | No | Local HTML file to use as the page instead of html. | |
| background | No | Don't focus the tab or bring Scribe forward. A new page goes to the Library without a tab; an open tab gets an unread blip; a closed page stays closed. Use it for a page the user will open from a link, or when they asked not to switch tabs. | |
| expectedRevision | No | Refuse to replace the page if its revision is no longer this one. A page you read or wrote this session is guarded like this anyway. |