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.

tool MCPlatest

wait_for_channel

wait_for_channel( channel: string, seconds?: integer | null, )
tool [source]

Block until something signals a tmux wait-for channel. A pending signal is consumed. Pair this with a shell command that ends in tmux wait-for -S <channel> to synchronise with work this server did not start. Change tmux state; no client-supplied executable input.

MCP request method
tools/call Send wait_for_channel as the tool name, with the arguments below.

Arguments#

  • channel (string) #

    The channel name, which is any string both sides agree on.

  • seconds? (integer | null) #

    How long to wait, in seconds. Defaults to 30, capped at 600.

    minimum
    0

No other arguments are accepted.

Result#

Returns object

Types#

ChannelWaitOutcomeSchema: "signalled" | "deadline"

type

Annotations#

destructiveHint
false
idempotentHint
false
openWorldHint
false
readOnlyHint
false
title
"Wait For Channel"

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"channel": {
"description": "The channel name, which is any string both sides agree on.",
"type": "string"
},
"seconds": {
"description": "How long to wait, in seconds. Defaults to 30, capped at 600.",
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"channel"
],
"type": "object"
}
Output schema
{
"$defs": {
"ChannelWaitOutcomeSchema": {
"enum": [
"signalled",
"deadline"
],
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"channel": {
"description": "The channel that was waited on.",
"type": "string"
},
"outcome": {
"$ref": "#/$defs/ChannelWaitOutcomeSchema",
"description": "`signalled` or `deadline`."
}
},
"required": [
"channel",
"outcome"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference