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.tools.hook_tools.show_hook

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

Look up a specific tmux hook by name.

Description#

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
Returns

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

Esc

Type to search.

Reference preview Open reference