Skip to main content
Glama

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

NameRequiredDescriptionDefault
keyNoStable page identity, e.g. sprint-notes (stored as scribe:sprint-notes). Reuse it to update the same page.
pinNoPin the tab so Clear/close-unpinned keeps it.
baseNoStart 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.
htmlNoHTML document or fragment. Omit when passing htmlPath.
stateNoInitial scribe.state, applied only when the page has no state yet.
titleYesTab title.
assetsNoLocal 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.
folderNoLibrary 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.
pluginsNoPage plugin dependencies. Writes a scribe-plugins meta tag; grants no access.
replyToNoWhere 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.
htmlPathNoLocal HTML file to use as the page instead of html.
backgroundNoDon'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.
expectedRevisionNoRefuse 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does substantial work: it discloses create-or-replace by key regardless of tab state, that no separate open/refresh is needed, and that a short problems list may be returned from the first render (also in background, omitted on timeout). It does not state whether a full replace discards existing page content or requires any permission, which are the remaining behavioral gaps for a mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four compact sentences, front-loaded with the action and its create/replace behavior, then the input choice, then the alternative tool, then return-value caveats. No sentence restates the name or title, and each parenthetical adds a distinct constraint.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter mutation tool with nested objects and no output schema, the description still conveys purpose, alternatives, and the shape of the returned problems list, while the schema handles parameter detail. The gap is that replacing an existing page's content/state consequences are only implied by "replaces the page."

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% across all 13 parameters, so the baseline is 3 and the description need not re-document them. It adds only one semantic choice beyond the schema, the html vs htmlPath tradeoff for large pages; key, base, folder, replyTo, background, and expectedRevision are all explained in the schema, not the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Show an HTML page in Scribe: creates it, or replaces the page with the same key (open or closed)" gives a specific verb, resource, and the create-vs-replace semantics in one clause. It also names the sibling it is not (page_patch), so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: use page_patch "for a small change to an existing page," pass html or htmlPath, and "This alone shows the page; no separate open or refresh" heads off a likely wrong-sibling call to page_open. The htmlPath guidance ("use it for large pages in Code mode") covers the other main branch point.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.