Tool Group
Consecutive tool calls collapsed into one readable execution group.
Loading component preview…
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/tool-group.jsonAPI reference
Tool Group
| Prop | Type | Default | Description |
|---|---|---|---|
items | ToolGroupItem[] | — | Provides consecutive tool calls and their states. |
open / onOpenChange | boolean / (open: boolean) => void | false / — | Controls the grouped-call disclosure. |
duration | string | — | Shows the total group duration. |
ToolGroupItem.kind | "command" | "file" | "tool" | "tool" | Selects the timeline icon for the tool call. |
ToolGroupItem.output | string | — | Adds a syntax-highlighted, copyable tool result. |