Skip to content
Cynco UI

AI

Tool

A collapsible card for a tool call: name, status badge, parameters and result as highlighted JSON.

import { Tool } from "@cynco-labs/ui/ai";

Example

Use

Every tool call in a transcript.

Props

ToolHeader (type, state, title), ToolContent › ToolInput input, ToolOutput output errorText.

Notes

States: input-streaming, input-available, approval-requested, output-available, output-error, output-denied.

Source Demo source Markdown