# ToolGroup

Several tool calls grouped together, keeping each failure visible.

- **Use it for**: Several tool calls together, keeping each failure visible.
- **Not for**: A single call. Try [ToolCall](https://unseenui.com/components/tool-call/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { ToolGroup } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<ToolGroup variant="list" tools={calls} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `className` | `string` |  |
| `detail` | `DetailLevel` |  |
| `tools` (required) | `readonly (ToolCallData \| ToolCallInput)[]` |  |
| `variant` | `"list" \| "accordion" \| "stack" \| "grid"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[AgentSteps](https://unseenui.com/components/agent-steps/), [ToolCall](https://unseenui.com/components/tool-call/), [ToolResult](https://unseenui.com/components/tool-result/), [ExecutionTimeline](https://unseenui.com/components/execution-timeline/), [RunInspector](https://unseenui.com/components/run-inspector/), [Plan](https://unseenui.com/components/plan/), [UsageMeter](https://unseenui.com/components/usage-meter/), [WorkSummary](https://unseenui.com/components/work-summary/), [ChainOfThought](https://unseenui.com/components/chain-of-thought/), [WorkflowGraph](https://unseenui.com/components/workflow-graph/), [ConnectionStatus](https://unseenui.com/components/connection-status/), [RunBoard](https://unseenui.com/components/run-board/)

Page: https://unseenui.com/components/tool-group/
