Wait for Pane Output
pane_wait_outputBlocks until a terminal pane's output contains a specified literal string or Rust regex, returning immediately if the text is already on screen.
Instructions
Block until a pane's terminal output contains a literal substring ('match') or matches a Rust regular expression ('regex'). Output already on screen matches immediately.
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>"
},
"name": "pane_wait_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Optional row limit to search. | |
| match | No | Literal substring to wait for. | |
| regex | No | Rust regular expression to wait for (if 'match' is omitted). | |
| source | No | Snapshot source (default 'recent'). | |
| pane_id | Yes | Target pane ID. | |
| timeout_ms | No | Timeout in milliseconds (default 60000). |