libtmux_mcp.tools.hook_tools.show_hooks
-
List configured tmux hooks at the given scope.
Description#
scope="server"enumerates hooks installed viatmux set-hook -g .... tmux splits those globals across two options trees by hook category: session-level hooks (session-closed,client-*, etc.) live in the global-session tree enumerated byshow-hooks -g, while pane/window-level hooks (pane-focus-in,window-resized, etc.) live in the global-window tree enumerated byshow-hooks -gw. This tool consults both trees and merges the results so the enumeration matches what a name-targetedshow_hookcall would return.- Parameters
-
-
scope(t.Literal ["server", "session", "window", "pane"] | None) # – Hook scope (server/session/window/pane). Defaults to the calling object's scope when atargetis given. -
target(str | None) # – Target identifier. For session scope: session name. For window scope: window ID. For pane scope: pane ID. Requiresscope. -
global_(bool) # – Pass-gto query global hooks. Default False. -
socket_name(str | None) # – tmux socket name.
-
- Returns
-
HookListResult Flat list of hook-name / index / command entries.