Skip to content
Get Pro

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.json

API reference

Tool Group

Tool Group properties
PropTypeDefaultDescription
itemsToolGroupItem[]Provides consecutive tool calls and their states.
open / onOpenChangeboolean / (open: boolean) => voidfalse / —Controls the grouped-call disclosure.
durationstringShows the total group duration.
ToolGroupItem.kind"command" | "file" | "tool""tool"Selects the timeline icon for the tool call.
ToolGroupItem.outputstringAdds a syntax-highlighted, copyable tool result.