Elements

Components

AI Tool

A tool call: the shared collapsible as the vessel — the name it was reached by and the state it reached in on the trigger, its input and output folded inside.

#Basic usage

ai-tool/basic Vue React
Input
{"query": "paper stock"}
Output
{"hits": 12}

#Props

#AiTool

A tool call: the shared collapsible as the vessel — the name it was reached by and the state it reached in on the trigger, its input and output folded inside.

PropTypeDefaultDescription
nameStringThe name the tool was reached by — shown raw on the trigger unless the label slot speaks friendlier words.
statusString as PropType<"pending" | "running" | "completed" | "error">The state the call reached — pending, running, completed, or error; stamped on the fold and whispered in the status chip.
defaultOpenBooleanfalseThe fold arrives open when set — rides the shared collapsible.