Component libraryTool call card
Tool call card
ProShow a tool request, its arguments, approval actions and result.
npx shadcn@latest add @tidal-pro/tool-call-cardInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/tool-call-card.css, components/ui/status-badge.css, components/ui/collapsible-panel.css, components/ui/code-block.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Required title, toolName and status (queued, running, needs-approval, succeeded, failed, cancelled). Optional statusLabel, announceStatus, summary, error, argumentsText/resultText as exact plain strings, argumentsLanguage (default JSON), controlled or uncontrolled Details disclosure, headingLevel2-6, footer, native article attributes and forwarded ref. Actions have stable actionId, ReactNode label, emphasis, native button attributes/ref and onAction; native onClick runs first and prevention cancels onAction. Native disabled and aria-disabled true are normalized to actual disabled. The card composes TidalStatusBadge, TidalCollapsiblePanel and TidalCodeBlock, so code is text and never parsed or run. Consumer owns all tool execution, approval, cancellation, errors and result state. No tool, request, navigation or storage side effect is introduced.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.