# Request Tool

Asks the user to add one tool group to the agent, and pauses the run until they answer on a request card.

## When to Use

The AI uses this tool when a task needs tools it does not hold. `tool_groups` lists the groups it holds and, under `available`, the ones it can ask for. Only the user adds tools: an agent never adds a group to itself.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `group` | string | Yes | The key of the one group to add, e.g. `gmail` or `relay` |
| `reason` | string | Yes | One sentence on what the group is for; the user reads it on the card |
| `app` | string | No | With `group: "mcp"` only: a catalog id from `list_mcp_apps`, or the `https` URL of the app's server |

## Returns

The run ends on a request card. The user's answer comes back as this call's result:

| Answer | Result |
|--------|--------|
| Add, or Add for all agents | `{"granted": {"group", "config"}}`; the group's tools are offered from the agent's next step |
| Not now | A refusal telling the agent not to choose for the user; the agent stops until the user writes |

## Example Scenario

A user asks an agent to fix a failing test in a project on their laptop. The agent has no Relay tools, so it calls this tool with `group: "relay"` and `reason: "To run a coding agent in your project."`. No Relay is connected yet, so the card offers **Connect and add**: the user pairs a Relay in the connection dialog, and the group is added once the dialog closes. With a Relay already connected, the card is a plain **Approve**.

## Notes

- One group per call
- For an API key or account a workflow needs, rather than tools for the agent, the agent asks with `request_connection`
- A group that needs an account shows Connect on the card; the user connects it there
- `relay` and `relay_computer_use` (screen, mouse and keyboard on a Relay with computer use turned on) are off by default; a request for either from a workspace with no Relay connected has the card connect one first (the held call states `setup: {"kind": "connect", "provider": "verdalia_relay"}`)
- An unknown group, or `app` with any group but `mcp`, is refused at once so the agent can correct the call
- Agents only
