Tool call list
Controlled tool-call disclosures with status, duration, inputs, output, and changed artifacts.
Loading interactive example
Use ToolCallList for observable tool activity. Keep each closed row on one scan line when content fits. Wrap long technical values in narrow containers. Show inputs, output, and changed artifacts after expansion. On failure, state whether side effects occurred. Details remain visible throughout the close animation. Reduced motion closes the panel immediately.
API
| Member | Type | Kind | Required | Default |
|---|---|---|---|---|
announcement | string | prop | No | undefined |
calls | readonly ToolCall[] | prop | Yes | |
emptyMessage | string | prop | No | undefined |
expandedIds | string[] | binding | No | [] |
headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | prop | No | 2 |
label | string | prop | Yes | |
onExpandedIdsChange | (ids: string[]) => void | callback | No | undefined |
Examples
Source
Loading source