AI Components / Tool Card Resolver
Tool Card Resolver
Dynamic card renderer — maps tool call name to registered component.
ai-essentials v0.5.0
Playground
Examples
Resolving
<ai-tool-card-resolver loading toolName="invoice"></ai-tool-card-resolver> Import
import { AiToolCardResolver } from '@cognivo/components'; // Or tree-shake: import '@cognivo/components/ai-tool-card-resolver'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
toolName | string | — | Tool name to resolve |
toolData | unknown | — | Tool output data |
registry | Record<string, string> | — | Name → tag mapping |
loading | boolean | false | Loading state |
Events
| Event | Detail | Description |
|---|---|---|
ai-tool-card-action | {toolName, action, data} | Card action |