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

libtmux_mcp.tools.hook_tools.show_hook

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

API reference · Markdown

libtmux_mcp.tools.hook_tools.show_hook ( hook_name : str , scope : t.Literal["server", "session", "window", "pane"] | None = None , target : str | None = None , global_ : bool = False , socket_name : str | None = None ) → HookListResult
function [source]
function [source]
libtmux_mcp.tools.hook_tools.show_hook

Look up a specific tmux hook by name.

Returns a HookListResult with zero or more HookEntry rows — zero if the hook is unset, one if it is a scalar hook, and multiple if it is an array hook with sparse indices.

Parameters
  • hook_name ( str ) – Hook to look up (e.g. "pane-exited").

Returns

HookListResult One or more HookEntry rows, or empty if unset.

Esc

Type to search.