wait_for_output
Wait until a terminal pane's output shows a literal substring or regex pattern, searching existing output then polling up to a timeout. Use to synchronize on expected results.
Instructions
Wait until a pane's output matches a pattern.
pane: pane id like `w17:p1`.
pattern: literal substring, or a Rust regular expression when regex=True.
The existing snapshot is searched first, then polled until timeout_ms.
source: visible, recent (default), or recent-unwrapped.
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": {
"pane": "<pane>",
"pattern": "<pattern>"
},
"name": "wait_for_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pane | Yes | ||
| regex | No | ||
| source | No | recent | |
| pattern | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||