tools
Framework for registering LLM tools with custom UI rendering in assistant-ui.
- Supports both backend tools (via AI SDK) and frontend-only tools, each with optional custom UI rendering through
makeAssistantToolUI - Includes human-in-the-loop patterns with
requires-actionstatus for confirmation workflows and interactive tool responses - Tool UI receives execution status, arguments, results, and a
submitResultcallback for interactive tools - Common setup patterns provided for weather APIs, clipboard operations, and file deletion confirmations with validation checks
assistant-ui Tools
Always consult assistant-ui.com/llms.txt for latest API.
Tools let LLMs trigger actions with custom UI rendering.
References
- ./references/make-tool.md -- makeAssistantTool/useAssistantTool
- ./references/tool-ui.md -- makeAssistantToolUI rendering
- ./references/human-in-loop.md -- Confirmation patterns
Tool Types
More from assistant-ui/skills
assistant-ui
Guide for assistant-ui library - AI chat UI components. Use when asking about architecture, debugging, or understanding the codebase.
1.8Kstreaming
Guide for assistant-stream package and streaming protocols. Use when implementing streaming backends, custom protocols, or debugging stream issues.
1.5Kprimitives
Guide for assistant-ui UI primitives - ThreadPrimitive, ComposerPrimitive, MessagePrimitive. Use when customizing chat UI components.
1.5Kruntime
Guide for assistant-ui runtime system and state management. Use when working with runtimes, accessing state, or managing thread/message data.
1.4Kthread-list
Guide for multi-thread management in assistant-ui. Use when implementing thread lists, switching threads, or managing conversation history.
1.4Ksetup
Setup and configure assistant-ui in a project. Use when installing packages, configuring runtimes, setting up chat UI, or troubleshooting setup issues.
1.4K