ChatToolCallsComponent
ChatToolCallsComponent renders all tool calls associated with an assistant message. By default sequential same-name calls auto-group into a labeled strip; consumers can register per-tool-name templates via the chatToolCallTemplate directive to fully replace the default card UX.
Selector: chat-tool-calls
Import:
#Inputs
| Input | Type | Default | Description |
|---|---|---|---|
[agent] | Agent | — (required) | Source of agent.toolCalls() |
[message] | Message | undefined | undefined | Filter to calls referenced by this message's tool_use content blocks |
[grouping] | 'auto' | 'none' | 'auto' | Auto-collapse adjacent same-name calls into a strip |
[groupSummary] | (name: string, count: number) => string | built-in registry | Override the default strip label |
#Default group summaries
| Tool name shape | Default label |
|---|---|
search_* | "Searched N sites" |
generate_* | "Generated N items" |
read_* | "Read N files" |
write_* | "Wrote N files" |
list_* | "Listed N items" |
| Anything else | "Called N times" |
#Per-tool templates
Register a template per tool name (or "*" as a wildcard) — see chat-tool-call-template.
When a per-tool template is registered for a name, calls of that name skip grouping and are rendered each through the template (the consumer takes responsibility for visual density).
#Custom group summary
#Disabling grouping
Each call renders independently regardless of name adjacency.