# libtmux_mcp.models.HookEntry

- **Module:** libtmux_mcp.models
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/models.py#L674
- **Page:** https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-models-hookentry/

One entry in a tmux hook array.

Hooks like ``session-renamed`` are arrays — they can have multiple
commands registered at sparse indices.
:class:`~libtmux_mcp.models.HookEntry` flattens one index+command
pair into a serialisable row.

## Members

- `hook_name` (attribute)
- `index` (attribute)
- `command` (attribute)
