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.
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 | |||