mcp.src.TmuxTools.show_hooks
- #[tool_router(router = inspect_router, vis = "pub(super)")] impl Tmux
Tools #[tool( description = "List the hooks tmux runs when something happens on the server, such as \ a pane exiting. This tool does not set hooks. Hooks set through another \ path remain in their server or session until unset; configuration files \ persist them across server restarts. Reach for this when tmux does \ something no tool here asked for.", title = "Show tmux Hooks", meta = crate::capability_meta!(Inspect, None, [Observe], [ConfiguredCommand], true, true, { "session" => [TmuxLookup] }) )] pub async fn show_hooks( &self, Parameters(ShowHooks : Parameters<ShowArgs { session }) Hooks >, ) -> Result<Json<Hooks>, ToolArgs Error > -
Read the hooks tmux runs on its own events.
- Parameters