AI product
Tool call card
an action the assistant took · status running/done/error/stopped · details collapsed
<View className="w-full gap-2"> <ToolCallCard title="Searched invoices" status="done" input={'{ "status": "overdue" }'} output={'2 invoices · £3,170.00'} /> <ToolCallCard title="Drafting a reminder" status="running" /> <ToolCallCard title="Sent reminder" status="error" output="Lumen Labs has no billing email." /> <ToolCallCard title="Exported to Xero" status="stopped" /></View>Usage
Name the action in words (“Searched orders”), not the function name. A call the person cancelled is stopped, not error.
API
<ToolCallCard title status input? output? />Get it
Already in every copy of the native kit:
import { ToolCallCard } from '@/components/kit/tool-call-card';Details
- Exports
ToolCallCard- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-utils, @halftone-native/spinner, @halftone-native/text
- Also searched as
- tool use, function call, action
- Registry JSON
- /r/native/tool-call-card.json
<div className="grid w-full max-w-xl gap-3"> <ToolCallCard title="Searched invoices" status="done" input='{ "status": "overdue" }' output="3 invoices, £4,410 total" /> <ToolCallCard title="Drafting reminder emails" status="running" /> <ToolCallCard title="Sent reminder to Lumen Labs" status="error" output="The contact has no email address." /> <ToolCallCard title="Exporting June’s invoices" status="stopped" output="Stopped before it finished." /></div>Usage
Name the action in words (“Searched orders”), not the function name. A call the person cancelled is stopped, not error.
API
<ToolCallCard title status input? output? />Get it
Already in every copy of the web kit:
import { ToolCallCard } from '@/components/kit/tool-call-card';Details
- Exports
ToolCallCard- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- collapsible
- Also searched as
- tool use, function call, action
- Registry JSON
- /r/web/tool-call-card.json
Agents: the whole registry is at /llms.txt.