ToolCall
display
ToolCall: displays an AI tool invocation with status indicator, tool name, arguments, and optional result
Terminal
$termuijs render tool-call
Installation
$ bunx termuijs add tool-call
Copies the source into src/components/tool-call/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { ToolCall } from '@termuijs/widgets'ts
new ToolCall(options: ToolCallOptions, style: Partial<Style> = {})API Reference
ToolCall
| Prop | Type | Required | Description |
|---|---|---|---|
name | string | required | — |
args | Record<string, unknown> | required | — |
result | unknown | optional | — |
status | ToolCallStatus | required | — |
collapsed | boolean | optional | — |