# to_wire_call

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/hooks/tools/to_wire_call)

Project a native tool call into compatible wire name and input.

## Signature

```python
to_wire_call(
    call: ToolCallData,
) -> tuple[str, JsonObject]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `call` | `ToolCallData` | Yes | Native tool-call data from a lifecycle owner. |

## Returns

`tuple[str, JsonObject]`

`(tool_name, tool_input)` for matchers and wire projection.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/hooks/tools.py#L133)