Tool

Renders a single tool invocation with header, collapsible input and output.

$bunx shadcn@latest add @nx-ui/ai-tool
Registry item
Installs withai-code-blockai-typesbadgecollapsibleutils
Used byai-chat

Running

The call has its parameters but is still awaiting a result — the header shows a pulsing Running badge.

Parameters

Completed

Once the tool returns, the output section renders the JSON result and the badge flips to Completed.

Parameters

Result

Errored

When a call fails, ToolOutput renders the error text in a destructive-toned block.

Parameters

Error

Connection timed out after 30s. The database did not respond.