SakaniUI

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

PropTypeDefaultDescription
status'running' | 'done' | 'error''done'A turning ray spinner, a green check, or a red cross.
namestringThe tool's name, shown in code: "search_crm".
argsstringThe arguments, in code, muted: (query="Acme Corp").
durationstring"1.2s".
inputunknownThe call's input: a string, or any value (shown as JSON).
outputunknownThe call's output: a string, or any value (shown as JSON).
openbooleanControlled open state.
defaultOpenbooleanfalseInitial open state.
onOpenChange(open: boolean) => voidCalled when the row is toggled.
classNamestringExtra class on the root.