Components
Tool Call Timeline
A timeline of an agent's tool calls.
ProPro, coming soon.
- search_webRunning…“vite rsc plugin” · 12 results
<ToolCallTimeline calls={calls} />Get notified
Tool Call Timeline is a Pro effect. Join the waitlist and we'll email you when it's available.
Usage
Pass the agent's tool calls as they happen. New calls slide in, the running one pulses, and each shows its status in words. It's an ordered list that announces changes politely to screen readers.
import { type ToolCall, ToolCallTimeline } from "@zjkm/pro/tool-call-timeline";
const calls: ToolCall[] = [
{ id: "1", name: "search_web", status: "done", detail: "12 results" },
{ id: "2", name: "read_page", status: "running" },
];
export function Trace() {
return <ToolCallTimeline calls={calls} />;
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
calls | ToolCall[] | The calls, oldest first. | |
className | string | Classes for the <ol>. |
A ToolCall is { id: string; name: string; status: "pending" \| "running" \| "done" \| "error"; detail?: string }.
With reduced motion, calls appear without sliding and nothing pulses.