Console-only: persist an A2UI component action and forward it as a structured message to the originating Harness session.
action_idstring*required
Stable client-generated id reused when Harness delivery is retried.
data_modelunknown
Full client-side model when createSurface.sendDataModel requested it.
expected_revisioninteger· uint64*requiredmin 0
Reject a gesture rendered from stale surface state.
source_component_idstring*required
surface_idstring*required
forwardedboolean*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
surface_idstring*required
a2ui::binding::apply
functionConsole-only: persist a value delivered by a declared A2UI live binding.
binding_idstring*required
surface_idstring*required
Surface receiving the event value.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::binding::delete
functionRemove a declarative live event binding from an A2UI surface.
binding_idstring*required
surface_idstring*required
Surface that owns the binding.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::binding::set
functionAttach an allowlisted live state, stream, or shell event binding to a surface.
bindingobject*required
target_pathstring*required
trigger_typestring*required
surface_idstring*required
Surface that should receive live values.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
Generate a user interface from a short description and optional data. Renders a safe A2UI v0.9.1 surface in chat and on the A2UI page, returning a compact receipt.
dataunknown
Optional application data. The composer should bind components to this data instead of repeating it in the component graph.
descriptionstring*required
Plain-language description of the interface to compose.
replaceboolean
Replace a surface with the same id. Defaults to true.
surface_idstring
Stable id to use for the generated surface. Omit for a generated id.
titlestring
Human-readable title shown in the Console sidebar.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::on-config-change
functionInternal: reload the A2UI worker from authoritative configuration after an update.
idstring
Advisory id only. The handler always re-fetches authoritative state.
a2ui::stamp-session
functionInternal: stamp the authoritative Harness session onto A2UI calls before dispatch.
any of (2)
variant 1
mutationsobject*required
argumentsunknown*required
a2ui::surface::apply
functionApply a batch of A2UI v0.9.1 protocol messages to a surface, validated and applied atomically to the session's durable state.
messagesany of[]*required
Ordered A2UI v0.9.1 envelopes. One batch targets one surface and is persisted atomically after the complete batch validates.
any of (4)
variant 1
createSurfaceobject*required
… expand 4 nestedcollapse
variant 2
updateComponentsobject*required
… expand 2 nestedcollapse
componentsobject[]*required
… expand 2 nestedcollapse
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
variant 3
updateDataModelobject*required
… expand 3 nestedcollapse
valueunknown
Omit or set null to remove the path. At `/` this replaces the whole data model, matching A2UI v0.9.1 root-update semantics.
variant 4
deleteSurfaceobject*required
… expand 1 nestedcollapse
titlestring
Optional Console title used when this batch creates a surface.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::surface::delete
functionDelete one A2UI surface from the current Harness session and publish the change to subscribed Console pages.
surface_idstring*required
Stable surface id returned by generate, apply, or list.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::surface::duplicate
functionDuplicate an A2UI surface inside the current Harness session under a new stable id.
new_surface_idstring*required
surface_idstring*required
Existing surface to copy.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::surface::export
functionExport one A2UI surface as a portable, replayable JSON package without Harness session metadata.
surface_idstring*required
Stable id of the surface to export.
catalog_idstring*required
format_versioninteger· uint32*requiredmin 0
messagesany of[]*required
any of (4)
variant 1
createSurfaceobject*required
… expand 4 nestedcollapse
variant 2
updateComponentsobject*required
… expand 2 nestedcollapse
componentsobject[]*required
… expand 2 nestedcollapse
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
variant 3
updateDataModelobject*required
… expand 3 nestedcollapse
valueunknown
Omit or set null to remove the path. At `/` this replaces the whole data model, matching A2UI v0.9.1 root-update semantics.
variant 4
deleteSurfaceobject*required
… expand 1 nestedcollapse
protocol_versionstring*required
surface_idstring*required
Generate source code from an A2UI surface: a React app or a data-serving iii worker.
surface_idstring*required
Surface to turn into source files.
targetstring*requiredenum: react, worker
surface_idstring*required
a2ui::surface::get
functionRead one durable A2UI surface, including its flat component graph and data model, from the current Harness session.
surface_idstring*required
Stable surface id returned by generate, apply, or list.
bindingsobject[]
target_pathstring*required
trigger_typestring*required
catalog_idstring*required
componentsobject[]*required
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
created_at_msinteger· int64*required
data_modelunknown*required
historyobject[]
componentsobject[]*required
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
data_modelunknown*required
last_actionany of
any of (2)
variant 1
source_component_idstring*required
timestamp_msinteger· int64*required
revisioninteger· uint64*requiredmin 0
send_data_modelboolean*required
updated_at_msinteger· int64*required
last_actionany of
any of (2)
variant 1
source_component_idstring*required
timestamp_msinteger· int64*required
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
send_data_modelboolean*required
session_idstring*required
Authoritative Harness session stamped by the pre-trigger hook.
surface_idstring*required
Globally unique inside the session.
updated_at_msinteger· int64*required
a2ui::surface::history
functionList the saved revisions of one A2UI surface, restorable by undo.
surface_idstring*required
Surface whose restorable snapshots should be listed.
itemsobject[]
componentsobject[]*required
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
data_modelunknown*required
last_actionany of
any of (2)
variant 1
source_component_idstring*required
timestamp_msinteger· int64*required
revisioninteger· uint64*requiredmin 0
send_data_modelboolean*required
updated_at_msinteger· int64*required
a2ui::surface::import
functionImport a portable A2UI surface package into the current Harness session.
packageall of*required
Portable A2UI JSON package created by surface export.
all of (1)
variant 1
catalog_idstring*required
format_versioninteger· uint32*requiredmin 0
messagesany of[]*required
… expand 4 nestedcollapse
any of (4)
variant 1
createSurfaceobject*required
… expand 4 nestedcollapse
variant 2
updateComponentsobject*required
… expand 2 nestedcollapse
componentsobject[]*required
… expand 2 nestedcollapse
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
variant 3
updateDataModelobject*required
… expand 3 nestedcollapse
valueunknown
Omit or set null to remove the path. At `/` this replaces the whole data model, matching A2UI v0.9.1 root-update semantics.
variant 4
deleteSurfaceobject*required
… expand 1 nestedcollapse
protocol_versionstring*required
surface_idstring*required
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::surface::list
functionList the A2UI surfaces owned by the current Harness session, newest first, as compact summaries.
countinteger· uint*requiredmin 0
session_idstring*required
surfacesobject[]*required
binding_countinteger· uint*requiredmin 0
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
surface_idstring*required
updated_at_msinteger· int64*required
a2ui::surface::patch
functionUpdate an A2UI surface from a plain-language instruction. Unspecified content is preserved; stale revisions are rejected.
dataunknown
Optional data to merge or use while composing the replacement.
expected_revisioninteger· uint64min 0
Reject the update unless the surface is still at this revision.
instructionstring*required
Plain-language change to make while preserving unspecified content.
surface_idstring*required
Stable id of the surface to update.
titlestring
Optional replacement title.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::surface::pin
functionPin or unpin an A2UI surface so important interfaces remain first in the library.
surface_idstring*required
Surface whose library priority should change.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::surface::undo
functionUndo edits to an A2UI surface by restoring a prior revision as a new monotonic revision.
surface_idstring*required
Surface to restore.
to_revisioninteger· uint64min 0
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::template::apply
functionCreate a new A2UI surface from a reusable template in the current Harness session.
surface_idstring*required
template_idstring*required
Template to instantiate.
catalog_idstring*required
component_countinteger· uint*requiredmin 0
protocol_versionstring*required
revisioninteger· uint64*requiredmin 0
session_idstring*required
statusstring*requiredenum: active, deleted
surface_idstring*required
a2ui::template::delete
functionDelete one reusable A2UI template from the current Harness session.
template_idstring*required
Reusable template identifier.
a2ui::template::get
functionRead one reusable A2UI template from the current Harness session.
template_idstring*required
Reusable template identifier.
catalog_idstring*required
componentsobject[]*required
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
created_at_msinteger· int64*required
data_modelunknown*required
descriptionstring*required
protocol_versionstring*required
send_data_modelboolean*required
template_idstring*required
updated_at_msinteger· int64*required
a2ui::template::list
functionList reusable A2UI templates stored for the current Harness session.
countinteger· uint*requiredmin 0
templatesobject[]*required
catalog_idstring*required
componentsobject[]*required
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
created_at_msinteger· int64*required
data_modelunknown*required
descriptionstring*required
protocol_versionstring*required
send_data_modelboolean*required
template_idstring*required
updated_at_msinteger· int64*required
a2ui::template::save
functionSave an A2UI surface as a reusable template in the current Harness session.
surface_idstring*required
Surface to capture as a reusable template.
template_idstring*required
catalog_idstring*required
componentsobject[]*required
componentstring*required
Component name from the negotiated catalog.
idstring*required
Unique component id within the surface. `root` is the render root.
created_at_msinteger· int64*required
data_modelunknown*required
descriptionstring*required
protocol_versionstring*required
send_data_modelboolean*required
template_idstring*required
updated_at_msinteger· int64*required
Serve the a2ui worker's injected console UI assets (content function for its console:script / console:style triggers).
pathstring*required
The asset path from the trigger config (e.g. `state/page.js`).
contentstring*required
The asset source, verbatim.
content_typestring*required
MIME type the console should serve the asset with.