EveryDev.ai
Sign inSubscribe
  1. Home
  2. Tools
  3. Tool UI
Tool UI icon

Tool UI

UX Design

React components for building AI chat interfaces with tool calling that integrates with assistant-ui for LLM-powered interactions.

Visit Website

At a Glance

Pricing

Open Source

Get started with Tool UI at no cost with Full component library with 15+ pre-built components and Works with AI SDK, LangGraph, LangServe, Mastra.

Engagement

Available On

SDK

Resources

WebsiteDocsGitHubllms.txt

Topics

UX DesignDesign ResourcesConversational Agents

About Tool UI

Tool UI is a React component library that provides pre-built, customizable UI components specifically designed for displaying tool calls and their results in AI-powered chat interfaces. It works seamlessly with assistant-ui to create sophisticated conversational AI experiences where LLMs can call tools and render beautiful, interactive results.

How It Works:

Tool UI follows a simple three-step pattern:

  1. Backend Tools - Define tools on your server that return structured JSON matching Tool UI component schemas (like LinkPreview, DataTable, OptionList)
  2. Frontend Registration - Connect backend tools to UI components using makeAssistantToolUI - when the LLM calls a tool, the matching component automatically renders
  3. Interactive Tools - For user input, register frontend tools with makeAssistantTool that display UI and collect results through addResult()

Key Features:

  • Pre-built Components - Ready-to-use components including DataTable, LinkPreview, OptionList, Image, Video, Chart, CodeBlock, and more for displaying tool results

  • Assistant-UI Integration - Works natively with assistant-ui runtime which handles message streaming, tool execution, and state management between frontend and backend

  • Two-Way Tool Calling - Supports both backend tools (LLM calls server functions) and frontend tools (LLM renders interactive UI that calls addResult() on user action)

  • Type-Safe Schemas - Each component comes with validation schemas and parsers to ensure tool outputs match expected formats

  • Framework Flexibility - Works with AI SDK, LangGraph, LangServe, Mastra, or custom backends through assistant-ui runtime adapters

Quick Setup:

# Install via assistant-ui CLI (recommended)
npx assistant-ui@latest init

# Or install packages manually
pnpm add @assistant-ui/react @assistant-ui/react-ai-sdk ai @ai-sdk/openai zod

Add your OpenAI API key:

OPENAI_API_KEY=sk-...

Basic Usage Example:

// 1. Set up runtime provider
import { AssistantRuntimeProvider } from "@assistant-ui/react";
import { useChatRuntime, AssistantChatTransport } from "@assistant-ui/react-ai-sdk";

function App() {
  const runtime = useChatRuntime({
    transport: new AssistantChatTransport({ api: "/api/chat" }),
  });

  return (
    <AssistantRuntimeProvider runtime={runtime}>
      <PreviewLinkUI />
      <Thread />
    </AssistantRuntimeProvider>
  );
}

// 2. Create backend tool (in /api/chat route)
import { streamText, tool, jsonSchema } from "ai";
import { openai } from "@ai-sdk/openai";

export async function POST(req: Request) {
  const { messages } = await req.json();

  const result = streamText({
    model: openai("gpt-4o"),
    messages,
    tools: {
      previewLink: tool({
        description: "Show a preview card for a URL",
        inputSchema: jsonSchema<{ url: string }>({
          type: "object",
          properties: { url: { type: "string", format: "uri" } },
          required: ["url"],
        }),
        async execute({ url }) {
          return {
            id: "link-preview-1",
            href: url,
            title: "Example Site",
            description: "A description of the linked content",
            image: "https://example.com/image.jpg",
          };
        },
      }),
    },
  });

  return result.toUIMessageStreamResponse();
}

// 3. Register UI component for the tool
import { makeAssistantToolUI } from "@assistant-ui/react";
import { LinkPreview, parseSerializableLinkPreview } from "@/components/tool-ui/link-preview";

export const PreviewLinkUI = makeAssistantToolUI({
  toolName: "previewLink", // Must match backend tool name
  render: ({ result }) => {
    if (result === undefined) {
      return <div>Loading preview…</div>;
    }
    const preview = parseSerializableLinkPreview(result);
    return <LinkPreview {...preview} />;
  },
});

When users ask the assistant to preview a link, it calls your tool and automatically renders the LinkPreview component with the returned data.

Tool UI - 1

Community Discussions

Be the first to start a conversation about Tool UI

Share your experience with Tool UI, ask questions, or help others learn from your insights.

Pricing

OPEN SOURCE

Open Source

Get started with Tool UI at no cost with Full component library with 15+ pre-built components and Works with AI SDK, LangGraph, LangServe, Mastra.

  • Full component library with 15+ pre-built components
  • Works with AI SDK, LangGraph, LangServe, Mastra
  • TypeScript support with type-safe schemas
  • Backend and frontend tool support
  • Community support via GitHub
View official pricing

Capabilities

Key Features

  • Pre-built React components (LinkPreview, DataTable, OptionList, Image, Video, Chart, etc.)
  • Native assistant-ui runtime integration
  • Backend tool rendering (LLM calls server functions)
  • Frontend interactive tools (UI components that collect user input)
  • Type-safe component schemas with validation parsers
  • Streaming response support
  • Tool call visualization in chat
  • Auto-continue after tool execution
  • Customizable theming and styling
  • Multiple AI framework support (AI SDK, LangGraph, LangServe, Mastra)

Integrations

React
TypeScript
assistant-ui
AI SDK
OpenAI
LangGraph
LangServe
Mastra

Reviews & Ratings

No ratings yet

Be the first to rate Tool UI and help others make informed decisions.

Developer

AgentbaseAI Inc.

AgentbaseAI Inc. builds and maintains assistant-ui, a TypeScript/React library and optional managed backend for conversational AI UX. The team focuses on developer-first components, production-ready features like chat history and thread management, and open-source distribution under MIT. They support integration with custom backends and provide hosted services for teams that prefer a managed offering.

Founded 2024
San Francisco, CA
$500K raised
3 employees

Used by

LangChain
Stack AI
Browser Use
Athena Intelligence
+7 more
Read more about AgentbaseAI Inc.
WebsiteGitHubX / Twitter
2 tools in directory

Similar Tools

assistant-ui icon

assistant-ui

TypeScript/React library that provides customizable chat UI components and an optional managed backend to build and deploy conversational AI applications.

Layrr icon

Layrr

Open-source visual editor for real code that runs alongside your dev server, enabling drag-and-drop design, design-to-code conversion, and AI-driven interface generation while writing changes directly to your repository.

Sleek.Design icon

Sleek.Design

AI-powered design tool that generates mobile app screens from text or images and exports designs to Figma or code.

Browse all tools

Related Topics

UX Design

AI tools that help create user-centered designs and experiences.

32 tools

Design Resources

AI-curated collections of stock photos, icons, templates, and other design assets with intelligent search, style matching, and personalized recommendations.

14 tools

Conversational Agents

AI chatbots and virtual assistants that can engage in natural dialogue.

108 tools
Browse all topics
Back to all tools
Explore AI Tools
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • News
  • Blogs
  • Builds
  • Contests
Create
Sign In
    Sign in
    26views
    0saves
    0discussions