wait_for_channel
-
Change tmux state; no client-supplied executable input. Block until something signals a tmux wait-for channel with ‘tmux wait-for -S
’. Use when you composed a shell command that signals it. For an ordinary command whose completion you want, run_shell_command already does this and also reports the exit status. - MCP request method
tools/callSendwait_for_channelas the tool name, with the arguments below.- Wraps
LibTmux.TmuxWaitChannel.WaitAsyncThe library call this tool makes:src/LibTmux.Mcp/Tools/WriteTools.Wait.cs:52.
Arguments
-
The tmux wait-for channel.
-
timeoutSeconds? =null(number | null)Seconds to wait, lowered to the server’s ceiling. Omit to wait the whole ceiling, 30 unless LIBTMUX_MCP_WAIT_MAX_SECONDS sets another.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Wait for channel"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
change
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": {"channel": {"description": "The tmux wait-for channel.","type": "string"},"timeoutSeconds": {"default": null,"description": "Seconds to wait, lowered to the server's ceiling. Omit to wait the whole ceiling, 30 unless LIBTMUX_MCP_WAIT_MAX_SECONDS sets another.","type": ["number","null"]}},"required": ["channel"],"type": "object"}Output schema
{"properties": {"changed": {"type": "string"},"channel": {"type": "string"},"effectiveTimeoutSeconds": {"type": "number"},"elapsedSeconds": {"type": "number"},"signalled": {"type": "boolean"}},"required": ["changed","channel","signalled","elapsedSeconds","effectiveTimeoutSeconds"],"type": "object"}