MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

wait_for_channel

wait_for_channel( channel: string, timeoutSeconds?: number | null, )

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/call Send wait_for_channel as 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

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"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"
}
Esc
Search in

Type to search.

Reference previewOpen reference