Tool Chips

Compact chips for the tools an agent calls, with running, done and failed states.

  • orders.search14 results, done
  • catalog.list, running
  • stock.checktimed out, failed
import { ToolChips } from '@brand-studio/ui';

export default function ToolChipsDemo() {
  return (
    <ToolChips
      tools={[
        { id: '1', name: 'orders.search', detail: '14 results', status: 'done' },
        { id: '2', name: 'catalog.list', status: 'running' },
        { id: '3', name: 'stock.check', detail: 'timed out', status: 'error' },
      ]}
    />
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { ToolChips } from '@brand-studio/ui';
<ToolChips tools={[{ id: '1', name: 'orders.search', status: 'done' }]} />

Accessibility

  • The list is a polite live region, so status changes are announced.
  • Each chip spells out its status for screen readers.

API Reference

PropTypeDefault
toolsToolCall[]
className?string''

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.