When an AI assistant calls a tool, the result is usually raw JSON dumped into the conversation. Tool UI turns those results into interactive React components: cards, tables, option lists that render inline and let users act without leaving the chat.
tool-ui.com | Docs | Gallery
- Run
pnpm devand open/playground. - Add a prototype entry in
lib/playground/registry.ts. - Use an existing preset from
lib/presets/*.tsto render your target tool payload. - Iterate on the matching component under
components/tool-ui/<component>/. - Rebuild registry artifacts with
pnpm registry:build.
- Approval Card: Binary confirmation for agent actions
- Audio: Playback with artwork and metadata
- Chart: Interactive data visualization
- Citation: Source references with attribution
- Code Block: Syntax-highlighted code snippets
- Data Table: Sortable columns, row actions, mobile accordion layout
- Image: Images with metadata and attribution
- Image Gallery: Grid layout for browsing collections
- Item Carousel: Horizontal browsing for collections
- Link Preview: Rich previews with OG data
- Option List: Single/multi-select with local and decision actions
- Order Summary: Itemized purchase confirmation with pricing
- Parameter Slider: Numeric parameter adjustment
- Plan: Step-by-step task workflows
- Preferences Panel: Compact settings surface
- Progress Tracker: Multi-step progress and status
- Question Flow: Guided multi-step input and selection
- Social Post: X/Instagram/LinkedIn renderers with media previews
- Stats Display: Metric cards and deltas
- Terminal: Command-line output and logs
- Video: Playback with controls and poster
- Weather Widget: Forecast and conditions
pnpm install
pnpm devhttp://localhost:3000/docs/quick-startfor integration walkthroughhttp://localhost:3000/docs/changelogfor release noteshttp://localhost:3000/playgroundfor interactive prototype testing
pnpm test
pnpm lint:ci
pnpm registry:checkMIT License. See LICENSE for details.