Show hook

show_hook

show_hook
inspect tool
inspect tool
show_hook

Look up a specific tmux hook by name.

Returns:

HookListResult

Use when you know which hook you want to inspect by name. Returns empty when the hook is unset; raises an ExpectedToolError for unknown hook names (typos, wrong scope) so input mistakes don’t masquerade as “nothing configured”.

Side effects: The built-in request reads data only. A configured alias or hook can add effects; see Trust model.

Parameters

Parameter

Type

Required

Default

Description

hook_name

str

yes

Hook to look up (e.g. "pane-exited").

scope

enum

no

:func:~libtmux_mcp.tools.hook_tools.show_hooks. One of: 'server', 'session', 'window', 'pane'.

target

str

no

:func:~libtmux_mcp.tools.hook_tools.show_hooks.

global_

bool

no

False

:func:~libtmux_mcp.tools.hook_tools.show_hooks.

socket_name

str

no

:func:~libtmux_mcp.tools.hook_tools.show_hooks.