Julien Thibeaut

Tool Call Display

AI chats 11

About

A collapsible panel that shows an AI tool call's status, input arguments, output, and errors, for visualizing tool usage in chat interfaces.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Tool Call Display to your project and fits it to your theme.

Code

How Tool Call Display is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Tool, type ToolPart } from "@/components/ui/tool";

const exampleToolPart: ToolPart = {
  type: "getWeather",
  state: "output-available",
  input: {
    location: "San Francisco, CA",
    unit: "celsius",
  },
  output: {
    temperature: 18,
    condition: "Partly cloudy",
    humidity: "62%",
  },
  toolCallId: "call_8f2a1c",
};

export default function ToolDemo() {
  return (
    <div className="w-full max-w-lg">
      <Tool toolPart={exampleToolPart} defaultOpen />
    </div>
  );
}

Dependencies

More by Julien Thibeaut

View all
  • Dock

    Dock

    3.3K
  • Text Effect

    Text Effect

    1.7K
  • Infinite Slider

    Infinite Slider

    1.6K
  • Text Shimmer

    Text Shimmer

    1.3K
  • Text Scramble

    Text Scramble

    1.1K
  • Progressive blur

    Progressive blur

    711
  • Glow Effect

    Glow Effect

    637
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    617

More in AI chats

View all
  • AI Actions

    AI Actions

    354
  • AI Artifact

    AI Artifact

    14
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    21
  • Aquarium Prompt

    Aquarium Prompt

    121
  • AI Orb

    AI Orb

    194
  • Prompt with Model Picker

    Prompt with Model Picker

    5
  • Chat Bubble

    Chat Bubble

    207