glass_wait_for_log
Wait for a specific log substring to appear, using cursors to include buffered history or only future lines. Returns matched status or timeout.
Instructions
After an action, use cursor:0 for buffered logs; for repeated events drain glass_logs before acting and pass its final cursor. Omit cursor for future lines only. Match a substring; timeout: matched:false. Resume from returned cursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Cursor after draining logs before the action; 0 includes retained history. Omit for future lines only. | |
| stream | No | "stdout", "stderr", or "both" (default). | |
| contains | Yes | Substring to wait for (required, non-empty). | |
| timeout_ms | No | Give up after this long (default 10000ms); returns `{matched:false}`. | |
| interval_ms | No | Poll interval (default 100ms). |