MCPpre-alphaAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux_mcp.models.HookEntry

class libtmux_mcp.models.HookEntry
Bases:
  • BaseModel

One entry in a tmux hook array.

Description#

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

Members

hook_name : str = Field(description="Hook name (e.g. 'pane-exited').")
index : int | None = Field( default=None, description=( "Array index for array-style hooks (e.g. session-renamed[3]). " "``None`` for scalar hooks." ), )
command : str = Field(description="tmux command string registered at that index.")
Esc

Type to search.

Reference preview Open reference