{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tool-call-collapsed",
  "type": "registry:ui",
  "title": "Tool call collapsed",
  "description": "Compact collapsed tool call row with a rotating chevron and monospace tool name that expands to show its details. Keeps agent traces tidy inside chat threads.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/tool-call-collapsed.tsx",
      "type": "registry:ui",
      "target": "components/ui/tool-call-collapsed.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { ChevronRightIcon } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\nfunction ToolCallCollapsed({\n  name,\n  children,\n  className,\n}: {\n  name: string\n  children?: React.ReactNode\n  className?: string\n}) {\n  const [open, setOpen] = React.useState(false)\n  return (\n    <div data-slot=\"tool-call-collapsed\" className={cn(\"rounded-xl border border-border bg-sunken\", className)}>\n      <button\n        type=\"button\"\n        className=\"flex h-9 w-full items-center gap-2 px-3 text-left text-xs font-medium text-fg\"\n        onClick={() => setOpen((v) => !v)}\n      >\n        <ChevronRightIcon className={cn(\"size-3.5 text-fg-muted transition-transform duration-[140ms]\", open && \"rotate-90\")} />\n        <span className=\"font-mono\">{name}</span>\n      </button>\n      {open && children ? <div className=\"border-t border-border px-3 py-2 text-xs text-fg-muted\">{children}</div> : null}\n    </div>\n  )\n}\nexport { ToolCallCollapsed }\n"
    }
  ]
}
