N
Nyxis
Tools

ToolCall

Card representing a single tool invocation by the model with status, args, and timing.

Preview

Installation

pnpm add nyxis-ui

Usage

import { ToolCall } from 'nyxis-ui';
// or:
// import { ToolCall } from 'nyxis-ui/tool-call';

<ToolCall
  name="search_documents"
  args={{ query: 'streaming protocol', limit: 5 }}
  status="running"
  durationMs={420}
/>;

Status

StatusIndicatorUse when
pendingwrench icon, neutralTool call has been proposed but not dispatched.
runningspinning loader, primary toneTool is executing.
completedcheckmark, success toneTool returned successfully.
erroredwarning, destructive toneTool threw / timed out.

Composition

Pair with <ToolResult> to surface the output, or wrap the pair inside a <ChatMessage role="tool"> for a chat-thread inspector.