herdr_pane_wait_for_output
Wait for pane output to match a substring or regex, then return the matched lines. Blocks instead of polling.
Instructions
Block until the pane output matches a substring or regex, then return the read. More efficient than polling. Returns the matched output lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Max lines in the returned read. | |
| match | Yes | Match spec: {type:'substring'|'regex', value}. | |
| source | Yes | Buffer to watch: visible, recent, recent_unwrapped or detection. | |
| pane_id | Yes | Id of the pane. | |
| strip_ansi | No | Strip ANSI escape sequences (default true). | |
| timeout_ms | No | How long to wait (null for server default). |