Skip to content
Uxelith
Sign in
Prov1.0.0AI & Agents

Tool Call

One step an AI agent took: the tool, what it sent and what came back. Queued, running with a light sweeping its edge, done with a self-drawing tick and the time taken, or failed. Opens to show arguments and the result.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
28 Oct 2026
Live

Installation

Usage

example.tsx
import { ToolCall } from "@/components/tool-call"

export function SearchStep() {
  return (
    <ToolCall
      name="search_places"
      description="Italian · quiet · nearby"
      status="done"
      duration={1400}
      args={{ query: "quiet Italian restaurant", limit: 5 }}
      result="5 places found · best match Toscano"
      output={{ results: [{ name: "Toscano", rating: 4.6 }] }}
    />
  )
}

Props

PropTypeDefaultDescription
namestring—The tool's name, in monospace.
descriptionstring—One line on what this call does.
status"queued" | "running" | "done" | "failed""queued"Where the call is.
durationnumber—Milliseconds it took, shown once done.
argsunknown—What the agent sent, shown as highlighted JSON.
resultReactNode—A readable summary of the result: a sentence or rich cards.
outputunknown—The raw result, as highlighted JSON.
errorReactNode—What went wrong, when failed.
iconReactNodewrenchA 16px icon for the tool.
...propsDetailsHTMLAttributes<HTMLDetailsElement>—Any details attribute, such as open or onToggle.

Accessibility

  • Built on the native details element: it opens with the keyboard and is announced as expandable.
  • The status is spoken as text (for example "Done in 1.4s"), not only shown as colour.
  • With prefers-reduced-motion the sweep, spinner and tick don't move.

Changelog

  1. v1.0.0Latest

    First release.

More in AI & Agents

All 4 in AI & Agents
  • AI & AgentsPro

    Approval Card

    The moment an AI agent asks before acting: what it wants to do, why, and exactly what will happen. Approve is held for a beat so it's never an accident; Deny is one press. Then it folds into a one-line record.

  • AI & AgentsPro

    Plan Timeline

    An AI agent's plan as it works through it: the current step pulses, a step waiting on you turns amber, finished steps tick and the line fills down to the next, so you see where it is at a glance.

  • AI & AgentsPro

    Streaming Answer

    An AI answer that arrives like writing: tokens come in bursts but words appear at a steady pace, each sharpening into place behind a caret, after a Thinking shimmer. Light markdown; sentences announced to screen readers.