MCPpre-alphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

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 previewOpen reference