Agent Steps
Each tool call is a row with a lamp drawn in dots: a faint ring while it waits, a comet going round it while it runs, lit in the accent when it's done and red if it failed, joined by a dotted rail that lights as the run gets past each step. Every row says what the tool was asked and how long it took, and opens to show what it returned. The header keeps a live count and timer; when the run is over it folds to one line, "Used 6 tools in 14s", with a dot per step in its colour.
Needs: None. Canvas 2D. You pass the steps as your agent reports them.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | AgentStep[] | required | The tool calls: id, tool, label, status (pending, running, done, error), startedAt, endedAt, detail. |
| defaultOpen | boolean | true | Open at first. |
| collapseWhenDone | boolean | true | Fold to the one-line summary a moment after the run finishes. |
| tone | string | – | The lit lamps and rail. The page's accent by default. |
| pitch | number | 3 | Size of one dot in px. |
| className | string | – | Class on the timeline. |
| style | CSSProperties | – | Style on the timeline. |