Wait for a console line
wait_for_logWaits for a new console line or script error containing specified text after an action, confirming its effect; returns matched false if the timeout occurs.
Instructions
Wait until a new console line (or script error) that contains the given text appears, then return it. Use it after an action to confirm its effect. Returns matched false when the timeout passes. Requires the bridge, and only sees lines that arrive after the call starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Only match console lines of this level. | |
| client | No | Only match lines from this client id (default: all clients). | |
| contains | Yes | Text to wait for (case-insensitive). | |
| timeout_ms | No | How long to wait (default 10000). | |
| include_errors | No | Also match script errors (default true). |