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_text

Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Wait within one deadline for pane text. From tmux 3.7 it streams pane output over a control client; below 3.7 it reads the screen on a timer, so output that changes no row, such as blank-only output, is not seen. Ends as matched, stopped, timedOut, expiredWhileReading, paneClosed, or alternateScreen.

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

Arguments#

No other arguments are accepted.

Result#

Returns object

No other properties are accepted.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Wait for text"

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"cursor": {
"description": "Caller-controlled cursor.",
"maxLength": 16384,
"type": "string"
},
"maxLines": {
"description": "Caller-controlled maxLines.",
"maximum": 2000,
"minimum": 1,
"type": "integer"
},
"paneId": {
"description": "Caller-controlled paneId.",
"type": "string"
},
"patterns": {
"description": "Caller-controlled patterns.",
"items": {
"type": "string",
"x-libtmux-max-utf8-bytes": 4096
},
"maxItems": 32,
"type": "array"
},
"regex": {
"description": "Caller-controlled regex.",
"type": "boolean"
},
"stop": {
"description": "Caller-controlled stop.",
"items": {
"type": "string",
"x-libtmux-max-utf8-bytes": 4096
},
"maxItems": 32,
"type": "array"
},
"timeoutMs": {
"description": "Caller-controlled timeoutMs.",
"maximum": 600000,
"minimum": 100,
"type": "integer"
}
},
"required": [
"paneId",
"patterns"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"cursor": {
"type": [
"string",
"null"
]
},
"effectiveTimeout": {
"type": "number"
},
"matched": {
"type": [
"string",
"null"
]
},
"matchedAtEntry": {
"type": "boolean"
},
"matchedIndex": {
"type": [
"integer",
"null"
]
},
"outcome": {
"type": "string"
},
"paneRef": {
"type": "string"
},
"sawNewOutput": {
"type": "boolean"
},
"seconds": {
"type": "number"
},
"tail": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"cursor",
"effectiveTimeout",
"matched",
"matchedAtEntry",
"matchedIndex",
"outcome",
"paneRef",
"sawNewOutput",
"seconds",
"tail"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference