Wait for output pattern
tmux_wait_for_pattern_taskPoll a tmux pane for a regex pattern and finish when matched or after maximum polling iterations.
Instructions
Poll a pane for a regex pattern and complete when matched or after iterations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "tmux_wait_for_pattern_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | SSH host alias (optional). Uses default host if set. | |
| flags | No | Regex flags (e.g., i) | |
| lines | No | Lines per fetch. | |
| target | No | Pane target to watch (pane id or session:window.pane). If omitted, uses default pane if set. | |
| pattern | Yes | Regex pattern to search for. | |
| intervalMs | No | Delay between polls in milliseconds. | |
| iterations | No | Max polling iterations. |