A2UI
A2UI (Agent-to-User Interface) is an open protocol, published in the a2ui-project/a2ui repository, in which an agent streams JSON messages that describe UI surfaces, components and data, and a renderer draws them with its own native widgets from a catalog it trusts. This skill pins A2UI v0.9.1, the repository's current production release, and produces agent output, renderers, catalogs or transport bindings that meet its rules.
Follow the workflow below step by step. Every rule here comes from a source in Sources. The A2UI protocol documents have no section numbers, so rules cite the document and heading name (for example "Protocol v0.9.1, createSurface"); the evolution guides and v0.8 cite their numbered sections. Where a document's prose example and its JSON schema disagree, the schema wins. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: agent (the side that generates A2UI), renderer (the side that draws it, called "client" in v0.9), orchestrator (routes between a user and sub-agents), or catalog author.
- Transport: A2A, AG-UI, MCP, or another channel (SSE with JSON-RPC, WebSockets, REST).
- Catalog: the basic catalog, or your own catalog and its
catalogId, plus any custom components and functions. - Target version: A2UI v0.9 (current, the default; write
"version": "v0.9.1"). A2UI v1.0 is a release candidate (preview, posture: build): implement it only behind a flag, next to v0.9. A2UI v0.8 is legacy: read it and upgrade from it, never author it. Seereferences/versions.md. - Revision: the pinned files in Sources at main 3db3b41 (2026-10-05), unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read the repository README,
specification/*/README.mdstatus lines and a2ui.org first, check for a new version folder or a status change (v1.0 going stable), then re-read every URL in Sources and update the pins.
Invariants
- One message, one key, one version. Every agent message is a JSON object with
versionand exactly one ofcreateSurface,updateComponents,updateDataModelordeleteSurface; every renderer message hasversionand exactly one ofactionorerror(Protocol v0.9.1, Envelope message structure;server_to_client.json,client_to_server.json). - Create before update; one live surface per id. A surface must be created before
updateComponentsorupdateDataModeltargets it,surfaceIdandcatalogIdare fixed once created, and sendingcreateSurfacefor an existingsurfaceIdwithout deleting it first is an error (Protocol v0.9.1,createSurface; Evolution Guide v0.9.1 § 2.2). - A flat list with exactly one
root. Components are a flat adjacency list linked by id; exactly one component has"id": "root", and nothing renders until it exists (Protocol v0.9.1, UI composition: the adjacency list model). - Only catalog components and functions. The agent must generate messages that conform to the catalog the renderer understands, chosen from the renderer's
supportedCatalogIds; inline catalogs are sent only when the agent declaresacceptsInlineCatalogs: true(Protocol v0.9.1, The component catalog;client_capabilities.json). - Catalogs type their links. A catalog property holding a component id MUST use
ComponentId, and a list of children or a template MUST useChildList, or validators cannot check the tree (Protocol v0.9.1, Validator compliance when defining catalogs). - No executable code crosses the wire. Logic is a named
FunctionCallthe renderer has registered; a call to an unknown function fails validation (Protocol v0.9.1, Registered functions; Defining Custom Functions, How Validation Works). - Bindings are JSON Pointers. Absolute paths start with
/; relative paths are valid only inside aChildListtemplate scope (Protocol v0.9.1, Path resolution & scope). - Input stays local until an action. Two-way bound inputs update the local data model immediately and send nothing; data reaches the agent only through an
action(withname,surfaceId,sourceComponentId,timestampandcontext) orsendDataModelmetadata (Protocol v0.9.1, Two-way binding & input components;client_to_server.json). - The data model goes only to its owner. With
sendDataModel, the renderer sends a surface's data model only to the agent that created it, and an orchestrator must strip surfaces the target sub-agent does not own (Protocol v0.9.1, Client to server updates; Actions, Preventing Data Leakage via Metadata Stripping). - Validate before render, and report failures. Validate generated JSON against the schema and catalog before it is rendered, and report failures as
errorwithcode: "VALIDATION_FAILED",surfaceId,pathandmessage(Protocol v0.9.1, Usage pattern: the prompt-generate-validate loop). - The transport keeps order, framing and metadata. Messages are delivered in the order generated, each envelope is delimited, and the transport can attach metadata (Protocol v0.9.1, The transport contract).
- A2A parts are arrays processed in order. An A2UI A2A
DataParthasmetadata.mimeTypeapplication/a2ui+json, itsdataMUST be an array of messages, and receivers MUST process them sequentially and continue after one fails (A2A Extension v0.9.1, Data encoding, Processing Rules). - Links open safely.
openUrlresolves the URL, allows onlyhttp:andhttps:, and opens new windows withnoopener,noreferrer(Basic Catalog Implementation Guide v0.9.1,openUrl).
Workflow
- Pick the version. Target A2UI v0.9 and emit
"version": "v0.9.1". Add A2UI v1.0 only behind a flag for a renderer that advertises it. ->references/versions.md✓ The target is recorded, and no v0.8 or unflagged v1.0 message is produced. - Negotiate capabilities and the catalog. The agent advertises
supportedCatalogIdsandacceptsInlineCatalogs; the renderer sendsa2uiClientCapabilitieswith itssupportedCatalogIds; the agent picks one catalog per surface. ->references/components-and-catalogs.md,references/transports-and-security.md✓ EverycatalogIdused increateSurfaceappears in the renderer's capabilities or a negotiated inline catalog. - Create the surface and its component tree. Send
createSurface, thenupdateComponentswith a flat list containingroot, using only that catalog's components and their required properties. ->references/messages.md,references/components-and-catalogs.md✓ Every child id resolves to a component in the list, and exactly one component isroot. - Bind data. Populate the data model with
updateDataModel, bind properties with{"path": ...}, use templates for lists, and useformatStringfor interpolation. ->references/data-binding-and-actions.md✓ Relative paths appear only inside templates, and${...}appears only insideformatString. - Add interactions. Give buttons an
action(eventfor the agent,functionCallfor local functions), addchecksto inputs and buttons, and decide onsendDataModel. ->references/data-binding-and-actions.md✓ Every value the agent needs on submit is in the actioncontextor covered bysendDataModel. - Validate and handle errors. Validate each message with the catalog mapped in for
catalog.json; feedVALIDATION_FAILEDback to the model; render the rest gracefully. ->references/messages.md✓ The output validates againstserver_to_client.jsonwith the chosen catalog. - Wire the transport. Map messages onto A2A
DataParts, AG-UI, MCP or a custom channel that meets the transport contract. ->references/transports-and-security.md✓ Messages arrive in order, and capabilities and the data model travel as metadata. - Review security. Check catalog trust, data model isolation, attribution,
openUrl, inline catalogs and any embedded web content. ->references/transports-and-security.md✓ Each item in the security section has a mitigation or a reason it does not apply. - Upgrade (only when asked). Follow the upgrade section for each step from the source version to the target.
->
references/versions.md✓ The upgraded messages validate against the target schemas and render the same UI.
Verify before done
- Every message validates against the target version's envelope schema, with
catalog.jsonmapped to the catalog in use. - Each surface gets
createSurfacebefore any update, no livesurfaceIdis created twice, and each tree has exactly oneroot. - No component type or function name is used that the negotiated catalog does not define.
- Custom catalogs reference children through
ComponentIdandChildList, and set$idandcatalogIdto the same URI. - Every
actionsent by the renderer carriesname,surfaceId,sourceComponentId,timestampand a resolvedcontext. - With
sendDataModel, an orchestrator forwards only the surfaces each sub-agent owns. - A2A parts use
application/a2ui+json, put an array indata, and a failing message does not stop the rest. -
openUrlrejects every scheme excepthttp:andhttps:. - Nothing from A2UI v1.0 is emitted without the flag and a renderer that advertises
v1.0.
Reference index
references/versions.md: every version line with its status, which one to use, what changed, upgrade steps from v0.8 to v0.9 and v0.9 to v1.0, and the v1.0 release candidate. Load for steps 1 and 9.references/messages.md: the agent and renderer envelopes per version, their properties, the error formats and message ordering.references/components-and-catalogs.md: the component object, the adjacency list, the basic catalog, catalog identity and negotiation, custom components and functions, and the v1.0 catalog rules.references/data-binding-and-actions.md: JSON Pointer paths and scopes, data model updates, two-way binding,formatString, functions and checks, actions andsendDataModel.references/transports-and-security.md: the transport contract, the A2A extension, AG-UI, MCP and other channels, and the security model.
Related skills
a2a, for the Agent2Agent protocol that the A2UI A2A extension rides on:npx skills add ScaleDockHQ/scaledock-skills --skill a2aag-ui, for the AG-UI agent-user interaction protocol, a common A2UI transport:npx skills add ScaleDockHQ/scaledock-skills --skill ag-uimcp-apps, for MCP Apps, the HTML-based UI extension of MCP that A2UI can host or be hosted in:npx skills add ScaleDockHQ/scaledock-skills --skill mcp-appsjson-schema, for the JSON Schema 2020-12 documents that define A2UI messages and catalogs:npx skills add ScaleDockHQ/scaledock-skills --skill json-schema
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read. Repository files are pinned at main 3db3b41 (2026-10-05).
- A2UI repository README: Early stage public preview; v0.9.1 current production, v1.0 release candidate, v0.8 legacy, checked 2026-10-05.
- A2UI website: project site, lists v0.9.1 (Current), v1.0 (Candidate), v0.8 (Legacy), checked 2026-10-05.
- A2UI roadmap: documentation, checked 2026-10-05.
- A2UI Protocol v0.9.1: Current Production (closed), v0.9.1, last updated 2025-12-03, checked 2026-10-05.
- A2UI Evolution Guide v0.9 to v0.9.1: Current Production (closed), checked 2026-10-05.
- A2UI A2A Extension spec v0.9.1: Current Production (closed), checked 2026-10-05.
- A2UI v0.9.1 JSON schemas: Current Production (closed), checked 2026-10-05.
- A2UI v0.9.1 basic catalog: Current Production (closed), checked 2026-10-05.
- A2UI v0.9.1 Basic Catalog Implementation Guide: Current Production (closed), checked 2026-10-05.
- A2UI v0.9.1 Defining Custom Functions: Current Production (closed), checked 2026-10-05.
- A2UI Protocol v0.9: Stable (closed), v0.9, checked 2026-10-05.
- A2UI Evolution Guide v0.8.1 to v0.9: Stable (closed), checked 2026-10-05.
- A2UI Protocol v1.0: Candidate, last updated 2026-06-08, checked 2026-10-05. Draft posture: build.
- A2UI Evolution Guide v0.9 to v1.0: Candidate, checked 2026-10-05. Draft posture: build.
- A2UI A2A Extension spec v1.0: Candidate, checked 2026-10-05. Draft posture: build.
- A2UI v1.0 JSON schemas: Candidate, checked 2026-10-05. Draft posture: build.
- A2UI v1.0 basic catalog: Candidate,
protocolVersion1.0, checked 2026-10-05. Draft posture: build. - A2UI Protocol v0.8.2: closed (legacy), updated 2025-11-12, checked 2026-10-05.
- A2UI A2A Extension spec v0.8: closed (legacy), checked 2026-10-05.
- A2UI concepts: Actions: documentation (security considerations and orchestration), checked 2026-10-05.
- A2UI concepts: Catalogs: documentation, checked 2026-10-05.
- A2UI concepts: Transports: documentation, checked 2026-10-05.
- A2UI over Model Context Protocol (MCP): guide, checked 2026-10-05.
- MCP Apps Integration in A2UI Surfaces: guide, checked 2026-10-05.
- A2UI Dynamic Rendering within MCP Applications: guide, checked 2026-10-05.