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>
);
}















