# LibTmux.Control.capabilities/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/ce52194a746ce1d6785c352a731cff734e0d11ce/lib/libtmux/control.ex#L394
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-control-capabilities-2/

```
capabilities(control, options \\ [])
@spec capabilities(t(), [LibTmux.Capabilities.option()]) ::
        {:ok, LibTmux.Capabilities.t()}
        | {:error,
           LibTmux.Error.t()
           | LibTmux.Control.ExecutionError.t()}
```

Observes named native tmux prerequisites on this handle's fixed epoch.

Reads the daemon version through the existing qualified lane and preserves
its accepted instance. A closed or replaced epoch refuses; discovery never
reconnects or changes transport. The connection must already be established;
discovery does not broaden client/server control compatibility. Reports are
captured data, not a Program API or new mutation authority. The version read
inherits the connection's host qualification for hooks, aliases and writers. See
`LibTmux.Capabilities` for pure feature checks.
The native command inventory is available through `LibTmux.Server`.

## Parameters

- `control` (`t()`)
- `options` (`[LibTmux.Capabilities.option()]`)
  Default: `[]`.
