AgentTrail
A vertical step list for a running agent task: done steps with durations, the current step with a live timer, then pending steps.
One agent tool call on one line: status, mono name, summary and a live timer. Opens to arguments and result; with calls it rolls several calls into one group row.
One tool call on one line. Not CodeSnippet. Not AgentTrail.
A finished call, opened to show its arguments and result. Variants shows running, failed and grouped calls.
{
"query": "invoice total",
"path": "src/billing",
"limit": 20
}ToolCallCard logs one call an agent made. Show the real arguments. A call that needs an OK first is an ApprovalCard; a whole task is an AgentTrail.
import { ToolCallCard } from "agentic-ds-kit";From contracts/toolcallcard.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| name | string | No | — | Tool name in mono, e.g. "search_files". Required unless calls is set. |
| summary | string | No | — | One line: query, target or outcome. Truncates. |
| status | running | done | error | No | done | error shows the word "Failed" with the CircleX icon, the same status words as the other run components. |
| duration | string | No | — | e.g. "0.4s". |
| startedAt | number | No | — | Epoch ms. A running call ticks a live timer from it. |
| args | unknown | No | — | Object → pretty JSON; string → as is. |
| result | string | string[] | No | — | — |
| resultMeta | string | No | — | Result header note, e.g. "3 of 3". |
| error | string | string[] | No | — | Error lines; an error card opens by default. |
| onRetry | function | No | — | Shows Retry (outline) in the open panel. |
| attempt | object | No | — | { n, max } → "Attempt 1 of 3". |
| calls | array | No | — | Group mode: { id, name, summary?, status, duration? }[]. Header sums done / running / failed. |
| groupTitle | string | No | — | Default "Ran N tools". |
| expanded | boolean | No | — | Controlled open state. |
| defaultExpanded | boolean | No | — | — |
| onExpandedChange | function | No | — | (expanded) => void |
| variant | default | panel | No | default | panel (RunDetail calls="all"): a 44 head with no status Badge (running reads "Running"), a grey body with white code boxes, Arguments and Result side by side (stacked below 40rem of card width), arrays of plain values on one line, the error box under Arguments, and Attempt left with Retry right (full width below 25rem). Ignored with calls. |
A vertical step list for a running agent task: done steps with durations, the current step with a live timer, then pending steps.
The agent asks before it acts: risk, what will happen in words, an exact preview of the command or diff, and Approve (⌘/Ctrl+Enter) / Deny (Escape) with an optional auto-deny countdown.
Read-only block of code with a copy button, optional title, language label, tabs, and line numbers.
What an agent intends to do, before or during a run.