# ToolCallWithContext

> **Class** in `langgraph.prebuilt`

📖 [View in docs](https://reference.langchain.com/python/langgraph.prebuilt/tool_node/ToolCallWithContext)

ToolCall with additional context for graph state.

This is an internal data structure meant to help the `ToolNode` accept
tool calls with additional context (e.g. state) when dispatched using the
Send API.

The Send API is used in create_agent to distribute tool calls in parallel
and support human-in-the-loop workflows where graph execution may be paused
for an indefinite time.

## Signature

```python
ToolCallWithContext()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    tool_call: ToolCall,
    state: Any,
)
```

| Name | Type |
|------|------|
| `tool_call` | `ToolCall` |
| `state` | `Any` |


## Properties

- `tool_call`
- `state`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/aa322c13cd5f16a3f6254a931a4104e412cd687c/libs/prebuilt/langgraph/prebuilt/tool_node.py#L286)