Tool Call Card

Agent tool call card showing the tool name, argument preview, duration and a running, done or failed status chip, with collapsible monospace output below.

src/registry/ui/tool-call-card.tsx/r/tool-call-card.json

Installation#

bash
npx shadcn@latest add @minidev/tool-call-card

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/tool-call-card.json

Usage#

tsx
import { ToolCallCard } from "@/components/ui/tool-call-card"

export function Example() {
  return (
    <ToolCallCard name="read_file" status="done">
      DESIGN.md § Geometry
    </ToolCallCard>
  )
}

API reference#

ToolCallCard props
PropTypeDefault
name*string-
status"running" | "done" | "error""done"
argsstring-
durationstring-
childrenReact.ReactNode-
defaultOpenbooleantrue
classNamestring-

* required

Dependencies#

npm

lucide-react

Built from

No other MiniDev files

Examples#

All AI chat UI components for React

Learn more