# `Raxol.AgentClientProtocol.Schema.AvailableCommand`
[🔗](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/session_update.ex#L344)

A single command the agent can execute, as advertised via
`AvailableCommandsUpdate`.

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

# `t`

```elixir
@type t() :: %Raxol.AgentClientProtocol.Schema.AvailableCommand{
  _meta: map(),
  description: String.t(),
  input: Raxol.AgentClientProtocol.Schema.AvailableCommandInput.t() | nil,
  name: String.t()
}
```

# `from_json`

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

Total: never raises. Missing/non-string `name`/`description` is the only failure mode (required fields).

# `new`

```elixir
@spec new(String.t(), String.t()) :: t()
```

# `to_json`

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

---

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