Tool Call
The row an agent leaves when it calls a tool: a status mark, the call in code, its duration, and the input and output when open.
It is presentational: set status and duration as the call progresses. input and output take a string, or any value (it is shown as formatted JSON). While running the output reads "Waiting for the result…"; on error it is tinted.
Running, then done
Update status, duration and output as the call finishes. This loops.
Input
{
"query": "Acme Corp",
"limit": 5
}Output
Waiting for the result…
Statuses
Running, done and error, each opened to its panels.
Input
{
"query": "Acme Corp",
"limit": 5
}Output
Waiting for the result…
Input
{
"query": "Acme Corp",
"limit": 5
}Output
{
"results": 3,
"top": "Acme Corp (Enterprise, $48,000)"
}Input
{
"to": "jo@acme.com"
}Output
403: not allowed to send from this address
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| status | 'running' | 'done' | 'error' | 'done' | A turning ray spinner, a green check, or a red cross. |
| name | string | The tool's name, shown in code: "search_crm". | |
| args | string | The arguments, in code, muted: (query="Acme Corp"). | |
| duration | string | "1.2s". | |
| input | unknown | The call's input: a string, or any value (shown as JSON). | |
| output | unknown | The call's output: a string, or any value (shown as JSON). | |
| open | boolean | Controlled open state. | |
| defaultOpen | boolean | false | Initial open state. |
| onOpenChange | (open: boolean) => void | Called when the row is toggled. | |
| className | string | Extra class on the root. |