wait_for_text
-
Wait for a literal UTF-8 string. On tmux 3.7+, check a captured baseline or later raw output through a control client; older tmux polls the screen. Bounded and cancellable. Text is data, not exit-status evidence. Configured tmux hooks and aliases may have effects, including during observation.
- MCP request method
tools/callSendwait_for_textas the tool name, with the arguments below.- Tool selection
- Opt in with
--tool wait_for_text.
Arguments
-
Explicit captured target; omission requires a configured caller pane
-
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
No other properties are accepted.
-
-
Valid UTF-8; at most 1024 bytes
- minLength
1- maxLength
1024
-
timeoutSeconds? =5(number)Total wait budget in seconds, capped by the remaining application call deadline
- maximum
5- exclusiveMinimum
0
No other arguments are accepted.
Result
Matches one or more variants.
-
-
continuity("reset" | "stream") -
evidence("literal_text") -
source("baseline" | "output" | "screen") -
-
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
No other properties are accepted.
-
-
terminalContent("data")
No other properties are accepted.
-
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Capability
- Toolset
- Inspect Request tmux state and terminal output.
- Process reach
none- tmux effects
observe
Every Julia 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": {"target": {"additionalProperties": false,"description": "Explicit captured target; omission requires a configured caller pane","properties": {"generation": {"description": "Opaque generation from list_panes","maxLength": 128,"type": "string"},"paneId": {"description": "Valid UTF-8; at most 64 bytes","maxLength": 64,"pattern": "^%(0|[1-9][0-9]*)$","type": "string"}},"required": ["paneId","generation"],"type": "object"},"text": {"description": "Valid UTF-8; at most 1024 bytes","maxLength": 1024,"minLength": 1,"type": "string"},"timeoutSeconds": {"default": 5,"description": "Total wait budget in seconds, capped by the remaining application call deadline","exclusiveMinimum": 0,"maximum": 5,"type": "number"}},"required": ["target","text"],"type": "object"}Output schema
{"anyOf": [{"additionalProperties": false,"properties": {"continuity": {"enum": ["reset","stream"]},"evidence": {"const": "literal_text"},"generationGuarantee": {"type": "string"},"keysSent": {"type": "boolean"},"matched": {"type": "boolean"},"source": {"enum": ["baseline","output","screen"]},"target": {"additionalProperties": false,"properties": {"generation": {"description": "Opaque generation from list_panes","maxLength": 128,"type": "string"},"paneId": {"description": "Valid UTF-8; at most 64 bytes","maxLength": 64,"pattern": "^%(0|[1-9][0-9]*)$","type": "string"}},"required": ["paneId","generation"],"type": "object"},"terminalContent": {"const": "data"},"text": {"type": "string"}},"required": ["matched","source","terminalContent","evidence","continuity","text","generationGuarantee","keysSent","target"],"type": "object"},{"properties": {"error": {"additionalProperties": false,"properties": {"code": {"type": "string"},"effects": {"enum": ["none","possible"]},"message": {"type": "string"},"output": {"type": "string"},"retryable": {"type": "boolean"}},"required": ["code","message","effects","retryable"],"type": "object"}},"required": ["error"],"type": "object"}],"type": "object"}