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.
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_id": "<pane_id>",
"source": "<source>",
"match": "<match>"
},
"name": "herdr_pane_wait_for_output"
}
}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). |