Widget Taxonomy
A built-in widget’s type is<family>.<name>, with the family named for what the widget shows: data is the
session’s own data, document a rendered document, and finance market data. data.message, data.messages and
data.thread are also the types of workflow components; a type is always read where it is stored, in a playground or
in a workflow, so the widget and the component never meet.
Data (data.*)
Widgets that render the session’s own data: its messages, threads and graphs, live as they change.
data.message: Singularly renders one complete message object payload (ideal for rendering a final output response). Supports Markdown, JSON, and Raw views.data.messages: Capable of mapping and rendering an entire chronological array of message objects dynamically as a scrolling list.data.thread: The conversation widget. Follows a session thread live as a conversation, posts to it from its composer, and with a responder starts a workflow on each post. Seedata.thread.data.graph: Renders an interactive property graph with configurable layout and traversal. Binds to a graph session object and supports complete or subset display modes.
Document (document.html)
Widgets that render a standalone document.
document.html: Renders a standalone HTML document carried in amessagesession object, in a sandboxed frame that follows the app’s light or dark theme. Seedocument.html.
Finance (finance.tradingview)
Targeted components for financial developers and analytical traders.
finance.tradingview: Renders a TradingView chart from amessagecomponent alias, with an optionalinterval. Seefinance.tradingview.
Custom (<alias>)
A revision’s own widgets, deployed with its workflows and placed by their alias alone. Mission Control,
mission-control, is the one the Missions app deploys. See Custom
Widgets.
document.html
Renders a standalone HTML document, carried in a message session object, inside a sandboxed frame.
The frame
The document runs sandboxed: withallow-scripts, or with no permissions when scripts is disabled, and never
allow-same-origin. It has an origin of its own, cannot reach the app or its storage, and sends no referrer.
Light and dark
The frame tells the document which theme the app is showing, and keeps it current:- The document’s
<html>carriesdata-theme="light"ordata-theme="dark"from the first byte: the app’s resolved theme, neversystem. The frame owns this attribute. Adata-themethe document writes on its own<html>has no effect, and its other attributes, such aslang, are kept. - With scripts enabled, a theme change updates
data-themein place, andwindowthen receives ablobhub:settingsevent whosedetailis{ theme }. The document is not reloaded, so a running page keeps its state. - With scripts disabled, a theme change reloads the document with the new attribute.
- A document that does not style for
data-themeis shown as it is today: light, whatever the app’s theme. prefers-color-schemeinside the frame does not follow the app. Usedata-theme.
color-scheme: dark is there to darken the frame’s own backdrop, scrollbars and form controls.
The blobhub:settings event fires only when the theme changes, so a script that draws reads data-theme once at start, as the example does.
data.message
Renders one message session object: its text, and the files and other blocks it holds. While a model writes the
answer, the widget draws what has arrived and replaces it with the stored message.
data.messages
Renders the list held by a messages session object, one message after another, each drawn as data.message draws
it.
A value that holds no list leaves the widget showing the notice “The bound value has no messages to display.”
data.thread
A conversation: a session thread followed live, with a composer that can start a workflow. Items posted to the bound
thread session object appear in the widget as they arrive, whoever posts them: a person in this widget, a workflow, a
listener, a schedule, or an agent on a worker. It is the playground’s one conversation widget.
A playground saved without the newer ports behaves as
responder none, composer on and steps folded.
Who answers
none. People and programs post, and nothing is started. An inbox, a hand-off, a log.workflow. Each post is stored first, then starts the workflow theworkflowport names, in the playground’s session. The posted item is the run’s input under the aliasrequestnames, as amessagewith the roleuser, the same value a listener passes. When the picker has a model, the run also carries it as its*entry for the language model provider (Choosing a Model per Run). Sending turns session sync on. The widget follows the run it started: the strip shows it answering, Stop stops it, and Send waits until it ends while typing goes on.- An agent on a worker needs no port. The widget reads the thread’s envelope, and while the envelope names an
agentand aninstance, the strip shows the agent’s state. A thread with both draws the run’s line first.
The header
The header keeps the widget’s name, the alias chip, Edit, Refresh and Copy. Withresponder workflow, a
badge after the alias chip names the workflow, and a thread whose envelope has an agent shows a badge naming the
agent. Both may show.
The transcript
-
Placement by source. An item’s
sourcedecides where it sits. The viewer’s own posts, from the web app, are on the right. Everything else is on the left under a name its source gives: -
A turn is one bubble. The consecutive items one run posts, or one worker turn’s items, share a bubble. Its
steps fold above the answer, one line each: reasoning, a tool call paired with its result, the call’s arguments and
the result opening in place. A worker turn ends after its
turn_enditem. - The meta line keeps author, time, Copy and JSON. On an answer it adds the model, the tokens used and the duration, and Open in Debugger on a workflow’s turn. Copy copies the turn’s stored items, and JSON opens them all.
-
A note is an item with the role
note: a quiet centered line without a bubble. -
A card. An item whose role the widget does not know, such as
summaryorhandover, is drawn where it was posted, across the transcript, titled by its role, with its content folded and opened in place. When the item records what it read, the card says so:summary · read 96 items through 11:40. - A partial message. While a model writes an answer, the widget draws what has arrived at the thread’s tail, with “writing…” in the meta line, and replaces it with the stored item that has the same id. A partial message is never stored. Silence for 30 seconds, or an aborted answer, removes it (Streaming).
The strip
Between the transcript and the composer, the strip says who is answering and for how long. It is absent when there is nothing to say.
Stop stops the run, Retry starts the run again from the same request without posting anything, and
Debugger opens the run in the debugger. A run that completes clears the strip.
The composer
The composer is the one every thread widget shares: Attach Files and Add Metadata in the+ menu, drag and
drop, paste, and Enter to send. Every post carries the role request, plus any metadata the person added. The widget
places these around it:
- Predefined inputs are a row of buttons above the composer, one per text block of
predefined_inputs. A click posts its text at once. - The model picker is shown with
responderworkflowand a non-emptymodels. Its menu is headed “Model for this run” and lists the models in order, and the first is picked when the widget opens. The pick lasts while the playground is open. Below 360 pixels of widget width the toggle shows its icon alone. - A voice note is recorded from a microphone button in the browsers that can record, as WebM or MP4 audio, up to five minutes. A line above the composer shows the recording time. The recording is staged like an attached file, uploaded on send, and posted as a file block. If the browser refuses the microphone, the composer says so and stages nothing. A model reads it as audio where its provider takes it (Modalities and Media).
- Send waits while the widget’s own run is starting, running or stopping, and its tooltip says “Waiting for the
answer”. The placeholder is “Type a message…” with
respondernoneandMessage <Name>...withworkflow.
What is drawn inline
A message and a thread item hold the same blocks, and the widget draws each by its type: text as thecontent_view
says, json as JSON, a reasoning block and a tool call with its result as steps, as the steps port says, and a
vector as a row that opens to its values. A block the widget does not know is shown as its JSON and is never
dropped. A file is drawn by its content type, compared whole:
Attachments
The composer attaches files three ways: the+ menu, dragging a file onto the composer, and pasting
from the clipboard. Before upload, the widget applies the same checks the server enforces — 4 MiB per
file, 10 files per thread item, and the file session object’s content-type allow-list
— so a rejected file is caught client-side rather than round-tripping to the API.
Attaching also marks where the file belongs in the message. A [name] token is inserted at the cursor,
and on send the posted content[]
interleaves each file block at its token’s position — so a file lands where it was placed in the text
rather than after it. The token edits and deletes as a single unit, and removing an attachment from the
composer takes its token with it; a file left with no token in the text is appended at the end.
A file the widget draws inline, or as a chip, is drawn as described above.
data.graph
Renders an interactive property graph backed by a graph session object. Supports complete-graph
display or seed-based subset traversal, with a choice of automatic layout algorithms.
finance.tradingview
Renders a TradingView chart from a message session object. The message’s metadata carries the chart: its widget
settings, its symbols with their bars, and optional studies and shapes. The widget draws those bars, and receives no
live updates.
A message without metadata shows the notice “Invalid message format: missing metadata”. Without the charting library
the widget shows “TradingView Charting Library not found.”

