Installation
tokens.css + tool-chips.css + button.csshead.html
<link rel="stylesheet" href="tokens.css">
<link rel="stylesheet" href="components/tool-chips/tool-chips.css">Basic
Preview
Collapsible compact tool/message chip stack.
Code
tool-chips.html
<p class="fixture-note">Collapsible compact tool/message chip stack.</p><div class="au-tool-chips" data-au-component="tool-chips" data-au-state="idle"></div>Component contract
- Install
- tokens.css · tool-chips.css · button.css
- States
- Host-owned via data-au-state and documented variants
- Host
- content, state transitions, and execution behind actions
For agents
tool-chips.contract
# agent-ui / tool-chips
component: tool-chips
selector: .au-tool-chips
data_au_component: tool-chips
purpose: Collapsible compact tool/message chip stack.
install:
- tokens.css
- tool-chips.css
- button.css when rendering actions
states: Host-owned via data-au-state and documented variants.
css_variables: Uses shared semantic tokens.
events: native form, focus, and click only — no custom events or runtime required
no_javascript: Markup and native controls remain usable without script.
host_owns: The host owns content, state transitions, and execution behind actions.
accessibility: Prefer labelled regions and text status, not color alone.
security: Escape untrusted model and tool text before insertion.
rules:
- Host owns execution, authorization, persistence, validation, and state transitions.
- Components render host-provided state; they never execute tools or imply approval.
- Escape untrusted model output, tool args, and tool output before insertion.
- Use only documented data-au-* attributes and data-au-state values.
- Keep the no-JS path usable. Do not add React, Tailwind, bundlers, or remote assets.
source: components/tool-chips/tool-chips.{html,css} + README.md + fixture.html