show_hooks
-
Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Read the hooks tmux will run on its own events. Read-only on purpose: a hook written here would outlive this conversation and keep firing with nobody left who knows why. Put hooks you want to keep in your tmux config file.
- MCP request method
tools/callSendshow_hooksas the tool name, with the arguments below.- Wraps
LibTmux.TmuxHooks.GetAllAsyncThe library call this tool makes:src/LibTmux.Mcp/Tools/ReadTools.Inspect.cs:172.
Arguments
-
paneId? =null(string | null)The pane whose scope is read. Omit for this server’s own pane, or else the one the first session shows.
-
scope? ="Session"("Server" | "Session" | "Window" | "Pane")Server, Session, Window, or Pane.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Show hooks"
Capability
- Toolset
- Inspect Request tmux state and terminal output.
- Process reach
none- tmux effects
observe
Every C# tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"paneId": {"default": null,"description": "The pane whose scope is read. Omit for this server's own pane, or else the one the first session shows.","type": ["string","null"]},"scope": {"default": "Session","description": "Server, Session, Window, or Pane.","enum": ["Server","Session","Window","Pane"],"type": "string"}},"type": "object"}Output schema
{"properties": {"result": {"items": {"properties": {"command": {"type": "string"},"index": {"type": "integer"},"name": {"type": "string"},"scope": {"enum": ["Server","Session","Window","Pane"],"type": "string"}},"required": ["name","index","command","scope"],"type": "object"},"type": "array"}},"required": ["result"],"type": "object"}