Skip to content

ToolCallCard

Stable

A card that shows one step the assistant took, with its status, how long it took, and what went in and out.

Also known as tool call, tool use, function call, tool

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Pending and running

A waiting step says Queued. A running step shows a spinner and no time yet.

When to use it

Makes one step the assistant took visible and easy to check. The top line says what it is and how it went; what went in and came out stays folded until someone wants it.

Made of: Status icon · Step name · Summary · Time taken · Status tag · What was sent · What came back

Use it for

  • A search, file read or other action the assistant ran.
  • A step that failed, with what was sent and what came back.
  • A step that is still running.

Not for

Do and avoid

Do. A plain summary and a clear status show what the assistant did.
fn_7a2() => {"ok":1,"r":[0x4f…
Avoid. Raw output with no summary is unreadable for most people.

Do

  • Write a summary anyone would understand.
  • Update the same card as the step moves from waiting to running to done.
  • Show the time taken once the step finishes.
  • When a step fails, show what went wrong.

Avoid

  • Do not put secrets or personal data in what was sent. It shows as plain text.
  • Do not use it to ask for approval. It reports. It does not ask.
  • Do not leave a failed step without a note on what to do next.

On a phone

  • The name and the summary are each cut to one line with an ellipsis, and the full text is not shown anywhere else on the card.
  • The input and output blocks both scroll sideways, and long unbroken strings in the output wrap.
  • The whole header is one tap target that opens the details, with a tap area at least 44px tall on touch screens.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started