# ToolApprovalRequest

> **Class** in `langchain`

📖 [View in docs](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ToolApprovalRequest)

Interrupt value raised once per gated tool call in `per_call` mode.

Takes the place of `HITLRequest`. Answer it with a single `Decision`, keyed by the
interrupt's ID, not a `HITLResponse`. The interrupt's `response_schema` lists the
decisions allowed for the tool and, for edits, the tool's argument schema.

## Signature

```python
ToolApprovalRequest()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    type: Literal['tool_approval'],
    tool_call_id: str,
    name: str,
    args: dict[str, Any],
    description: str,
)
```

| Name | Type |
|------|------|
| `type` | `Literal['tool_approval']` |
| `tool_call_id` | `str` |
| `name` | `str` |
| `args` | `dict[str, Any]` |
| `description` | `str` |


## Properties

- `type`
- `tool_call_id`
- `name`
- `args`
- `description`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/c0344e0cee824c1c6489ba972cea171ff193d234/libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py#L173)