show_html
Render sanitized HTML cards when Markdown cannot express a layout—use grids for KPI tiles, dashboards, progress bars, or inline SVG charts.
Instructions
Show the docs card in HTML mode — the explicit 'I need a real layout' tool. Same card as show_docs, same buttons, but the body is an HTML fragment instead of Markdown. Reach for it when Markdown cannot express the shape: KPI tiles in a grid, a sprint board, a comparison matrix, inline SVG sparkline or donut, progress bars, a mini dashboard with five boxes. For prose, a table, a diff or a mermaid diagram, keep show_docs in markdown — it is shorter and it renders better at 430px.
SANITIZED, always: whitelist of tags (div/span/p/h1-h6/table/ul/ol/li/section/strong/em/code/pre/blockquote/details/svg primitives/a/img https), whitelist of CSS properties (no position, no url(), no @import), no script, no iframe, no form, no event handler, no data-* attribute. A dropped tag is unwrapped, its text survives.
Utility classes provided by the card: .row .between .grid .grid-2 .grid-3 .card .kpi .kpi-label .pill .pill.ok|.warn|.bad .bar>.bar i .muted .mono .right .center .small. Inline style is allowed for the rest.
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>",
"html": "<html>"
},
"name": "show_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Sanitized HTML fragment (no <html>/<body> needed) | |
| level | No | Accent color: info/success/warning/error | |
| title | Yes | Title of the card | |
| screen | No | Display id, index, label, 'primary', or 'focused'. Omit for primary. | |
| source | No | Origin chip label | |
| buttons | No | Action buttons rendered under the card. An entry is either an object or a one-line string: {"label": "Open the thread", "url": "https://..."} -> opens the default browser, where the session is already logged in {"label": "Copy SN", "copy": "SN123456"} -> copies to the clipboard {"label": "Close"} -> dismisses the card "Label | https://... | primary" -> same thing, one line Optional style: primary | secondary | danger (the first button defaults to primary). A button is how a card becomes actionable: show_popup renders plain text, so use show_docs or this array when Wael has to click something. The button does not reply to you: it opens a page or copies text. Everything the agent must learn has to be written in the card itself. | |
| duration | No | Seconds before auto-dismiss (default 30, max 300) |