Show hook

show_hook

show_hook
readonly tool

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 ToolError for unknown hook names (typos, wrong scope) so input mistakes don’t masquerade as “nothing configured”.

Side effects: None. Readonly.

Parameters

Parameter

Type

Required

Default

Description

hook_name

str

yes

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

scope

enum

no

— One of: 'server', 'session', 'window', 'pane'.

target

str

no

global_

bool

no

False

socket_name

str

no