libtmux_mcp.tools.hook_tools.show_hooks
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
List configured tmux hooks at the given scope.
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 a
targetis given. -
target ( str | None ) – Target identifier. For session scope: session name. For window scope: window ID. For pane scope: pane ID. Requires
scope. -
global_ ( bool ) – Pass
-gto query global hooks. Default False.
-
- Returns
-
HookListResult Flat list of hook-name / index / command entries.