# mcp.views.Hook

- **Module:** mcp.views
- **Package:** tmux-mcp
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/tmux-mcp/src/views.rs#L340
- **Page:** https://libtmux.org/en/rs/latest/mcp/reference/mcp-views-hook/

One tmux hook.

## Members

- `name` (attribute): The hook name, such as `pane-exited`.
- `index` (attribute): Its index, when the hook is an array.
- `command` (attribute): The command tmux runs.
