amankaushik481

Tool Result Panel

AI chats

About

A panel for AI agent UIs that shows a tool call's name, a success/error/running status badge, and its output as a highlighted JSON code block.

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

Code

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

Usage.tsx

import { ToolResultPanel } from "@/components/ui/tool-result-panel";

export default function ToolResultPanelDemo() {
  return (
    <div className="flex w-full flex-col items-center justify-center gap-4 p-8">
      <ToolResultPanel
        name="lookup_invoice"
        status="success"
        output={{
          invoice: "INV-2041",
          customer: "Northwind Traders",
          amount: 12400,
          currency: "USD",
          status: "paid",
        }}
      />
    </div>
  );
}

More by amankaushik481

View all
  • Background Boxes

    Background Boxes

    7
  • Icon Button

    Icon Button

    7
  • Chip Filter

    Chip Filter

    7
  • Typing Text

    Typing Text

    5
  • Emoji Picker

    Emoji Picker

    4
  • Treemap Chart

    Treemap Chart

    3
  • File Dropzone

    File Dropzone

    2
  • Morphing Text

    Morphing Text

    2

More in AI chats

View all
  • AI Actions

    AI Actions

    365
  • Aquarium Prompt

    Aquarium Prompt

    183
  • Agent Chat

    Agent Chat

    21
  • AI Response

    AI Response

    16
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    11
  • AI Artifact

    AI Artifact

    17
  • Color Picker

    Color Picker

    232
  • AI Orb

    AI Orb

    225