# tmux_query:command_plan/0

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_query.erl#L92
- **Page:** https://libtmux.org/en/erlang/latest/reference/t-tmux_query-command_plan-0/

```
-type command_plan() ::
          #{initial_spine := [source_command()],
            candidate := [source_command()],
            hydration := [source_command()],
            isolated_hydration := [source_command()],
            final_spine := [source_command()],
            empty_server := skip_window_and_pane_scans}.
```

Capture phases: initial identity/scalar scans, optional candidate scans, complete text/byte hydration and final identity/scalar scans. hydration gives the default batched templates; isolated_hydration describes the explicit isolated option and unqualified-field fallback. An empty server skips window/pane scans. Execution still validates capture bounds and can fail.
