Skip to content
nexubDesign System
v11.9.0

Components · AI

Tool Call

BetaAdded v4.8.0

One tool call: its name and status, expandable to input and output.

import { ToolCall } from '@nexub/react';
View as Markdown

Playground

Props

status
search_invoicesDone

Input

{
  "customer": "Acme",
  "status": "unpaid"
}

Output

{
  "found": 3,
  "total": "$4,120"
}
TSX
<ToolCall input={{ customer: 'Acme', status: 'unpaid' }} output={{ found: 3, total: '$4,120' }} open status="done" name="search_invoices" />

Examples

Tool call

search_invoicesDone

Input

{
  "customer": "Acme",
  "status": "unpaid"
}

Output

{
  "found": 3,
  "total": "$4,120"
}
draft_emailRunning

Input

{
  "to": "ap@acme.example",
  "template": "reminder"
}

Props

Props
PropTypeDefaultDescription
namerequiredstring—Tool name.
statusrequired'running' | 'done' | 'failed'—Shown as a badge.
inputunknown—Arguments, shown as JSON.
outputunknown—Result, as text or JSON.

Accessibility

Screen reader

  • A native `<details>` disclosure: opens with Enter or Space.

On iOS & Android