Wait for console lines
console_waitBlocks until a set number of console lines match a regex pattern, returning the lines and cursor for continued monitoring. Use it to wait for test batches or specific console output before proceeding.
Instructions
Blocks until count console lines matching regex are printed (from cursor, default: now), e.g. the end line of a test batch: {regex: "^BATCH DONE", count: 4, timeout_s: 900}. Returns the matching lines and next_cursor (just after the last one used: pass it to the next wait so nothing printed in between is missed). Reports progress; error timeout (with the lines found so far). Lines come from every realm and the engine (print, Msg, engine messages). Can run as an MCP task.
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": {
"regex": "<regex>"
},
"name": "console_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Lines to wait for (default 1). | |
| regex | Yes | ECMAScript, case-insensitive. | |
| cursor | No | Start from this console cursor (from console_read, console_exec or an earlier wait). Default: now. | |
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. | |
| timeout_s | No | Default 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lost | No | ||
| next | No | ||
| note | No | ||
| lines | Yes | ||
| matched | Yes | ||
| warning | No | ||
| waited_s | Yes | ||
| next_call | No | ||
| answered_by | No | ||
| next_cursor | Yes | ||
| truncated_note | No | ||
| version_warning | No |