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

libtmux_mcp.models.HookEntry

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

class libtmux_mcp.models.HookEntry
class [source]
class [source]
class libtmux_mcp.models.HookEntry
Bases:
  • BaseModel

One entry in a tmux hook array.

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

hook_name : str = Field(description="Hook name (e.g. 'pane-exited').")
attribute [source]
attribute [source]
hook_name

index

index : int | None = Field( default=None, description=( "Array index for array-style hooks (e.g. session-renamed[3]). " "``None`` for scalar hooks." ), )
attribute [source]
attribute [source]
index

command

command : str = Field(description="tmux command string registered at that index.")
attribute [source]
attribute [source]
command
Esc

Type to search.