ToolCall

One tool invocation with its request and result tucked behind a disclosure.

Install it:

npx shadcn add @ambientui/tool-call

Live

Searched the docs

Behavior

  • ·A TOOL CALL IS A CLAIM, AND A CLAIM MUST BE AUDITABLE: the collapsed row is the claim, the disclosure holds the evidence.
  • ·The verb alone, in plain language. The exact argument is evidence, and evidence lives in the disclosure — a chip in the header duplicated the request one click away.
  • ·Collapsed by default, EXCEPT on failure: a failure the user has to go looking for is a failure they will miss.
  • ·Request and result are quoted verbatim in mono. Evidence is not paraphrased.
  • ·With no request or result, the row stops pretending to be expandable.

When to use

  • ·Every tool invocation the user should be able to audit.

When not to

  • ·For several calls that went out together — that is ParallelTools, which collapses them to one row.
  • ·For a whole session's activity — that is ToolTimeline.