For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/v0.4.0/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/v0.4.0/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/v0.4.0/en/components/execution-item.md.

Execution Item

Execution Item is a native disclosure for one command, tool call, edit, search, browser action, or MCP invocation. It keeps the integration contract stable while applications supply domain-specific details.

Live preview
Run focused testsnpm test -- runtime.spec.tsRunning
PASS tests/runtime.spec.ts Watching cancellation cleanup…
Open external documentationbrowser · learn.chatgpt.comWaiting

This action requires approval before the site can open.

Usage

<details class="execution-item" data-state="running">
  <summary>
    <span data-execution-icon aria-hidden="true">...</span>
    <span data-execution-identity
      ><strong>Run tests</strong><small>npm test</small></span
    >
    <span data-execution-status>Running</span>
    <span data-execution-disclosure aria-hidden="true">...</span>
  </summary>
  <section>...</section>
  <footer>...</footer>
</details>

Parameters

APIValuesPurpose
class="execution-item"Required on <details>Native disclosure root
data-statequeued, running, waiting, success, error, cancelledProvider-neutral execution state
data-execution-iconOptionalTool-kind icon, decorative when the title names the action
data-execution-identityRequiredAction title and compact target or command
data-execution-statusRecommendedTextual status, normally a Status Badge
data-execution-disclosureOptionalDirectional disclosure icon
Direct <section>OptionalParameters, output, patch, evidence, or error details
Direct <footer>OptionalStop, retry, inspect, or copy actions

States and variants

Map backend-specific states into the six public states and retain detailed wording in data-execution-status. Use waiting for approval or external input. Keep partial output visible after error or cancellation. Nested Execution Items are allowed only when the parent represents a real delegated group; avoid deep disclosure trees.

Accessibility

Native <details> and <summary> provide disclosure semantics and keyboard behavior. The visible title must identify the action without relying on its icon. Do not put the Summary inside a button. Keep output in ordinary text or <pre> unless records are genuinely live; use Log Viewer for high-volume streams.