# `Raxol.AgentClientProtocol.Schema.ToolCallUpdate`
[🔗](https://github.com/DROOdotFOO/raxol-agent/blob/raxol_agent_client_protocol-v0.1.0/packages/raxol_agent_client_protocol/lib/raxol/agent_client_protocol/schema/tool_call.ex#L464)

An update to an existing tool call. `ToolCallUpdateFields` is flattened
into the same wire object as `toolCallId` and `_meta` (a "serde flatten"),
not nested under its own key.

Ported from the MIT `f1729/agent_client_protocol` (c) 2025 f1729; see NOTICE.md.

# `t`

```elixir
@type t() :: %Raxol.AgentClientProtocol.Schema.ToolCallUpdate{
  _meta: map(),
  fields: Raxol.AgentClientProtocol.Schema.ToolCallUpdateFields.t(),
  tool_call_id: String.t()
}
```

# `from_json`

```elixir
@spec from_json(term()) :: {:ok, t()} | {:error, term()}
```

Total: never raises. Missing/non-string `toolCallId` is the only failure mode.

# `new`

```elixir
@spec new(String.t(), Raxol.AgentClientProtocol.Schema.ToolCallUpdateFields.t()) ::
  t()
```

# `to_json`

```elixir
@spec to_json(t()) :: map()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
