Skip to content

assistant-ui/tool-ui

Repository files navigation

Tool UI

Copy/paste React components for rendering tool calls in AI chat interfaces. Built by assistant-ui.

When a model calls a tool, most apps dump raw JSON into the conversation. These components turn tool payloads into interactive UI — approvals, forms, tables, charts, media cards, and receipts — so users can understand and act without leaving the chat.

Tool UI – UI components for AI interfaces

tool-ui.com | Docs | Gallery | Quick Start

Gallery

Tool UI component gallery – weather, message draft, code block, image gallery, order summary, chart, and plan components

Featured components

Option List
Let users select from multiple choices
Option List component
Question Flow
Multi-step guided questions with branching
Question Flow component

Components

  • Decision/Confirmation: Approval Card, Order Summary, Message Draft, Option List
  • Input/Configuration: Parameter Slider, Preferences Panel, Question Flow
  • Display/Artifacts: Data Table, Chart, Citation, Link Preview, Stats Display, Code Block, Code Diff, Terminal
  • Media/Creative: Image, Image Gallery, Video, Audio, Instagram Post, LinkedIn Post, X Post
  • Progress/Execution: Plan, Progress Tracker, Weather Widget

Each component includes a Zod schema for payload validation and presets for realistic example data. Browse them all in the Gallery.

License

MIT License. See LICENSE for details.

About

UI components for AI interfaces

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors