Kiki

Tool Call Inspector

AI chats 16

About

A compact agent tool-call row that expands into readable input and result panels, with running and completed states for AI product interfaces.

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

Code

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

Usage.tsx

"use client";

import { useEffect, useRef } from "react";
import { ToolCallVisualizer } from "@/components/ui/tool-call-inspector";

export default function ToolCallVisualizerDemo() {
  const rootRef = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const timer = window.setTimeout(() => rootRef.current?.querySelector("button")?.click(), 900);
    return () => window.clearTimeout(timer);
  }, []);

  return <div ref={rootRef} className="grid min-h-[520px] w-full place-items-center bg-zinc-50 p-5 dark:bg-zinc-950"><ToolCallVisualizer name="search_web" input={{ query: "customer retention benchmarks" }} result={{ matches: 18, elapsed_ms: 342, top_source: "Industry report" }} /></div>;
}

Dependencies

More by Kiki

View all
  • Filter Token Bar

    Filter Token Bar

    534
  • Compose

    Compose

    425
  • Product Tour

    Product Tour

    267
  • Tier List Maker

    Tier List Maker

    152
  • Draggable Photo Stack

    Draggable Photo Stack

    111
  • Morphing Scroll Navbar

    Morphing Scroll Navbar

    96
  • 3D Before & After Image Slider

    3D Before & After Image Slider

    51
  • Selection Bubble Menu

    Selection Bubble Menu

    39

More in AI chats

View all
  • AI Actions

    AI Actions

    351
  • Aquarium Prompt

    Aquarium Prompt

    113
  • Agent Chat

    Agent Chat

    21
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    60
  • Research Report

    Research Report

    7
  • Tool Web Fetch

    Tool Web Fetch

    4
  • Color Picker

    Color Picker

    201
  • Suggestions

    Suggestions

    40