Read a run's live event log
run_eventsOpens the run's event stream, collects up to max_events, and returns as soon as the run reaches a terminal event or wait_seconds elapses — whichever comes first. This is how you watch a build without polling. Example: {"run_id": "…", "from_seq": 0, "max_events": 50, "wait_seconds": 5}. Returns {events: [{seq, type, at, stage, message, rows, bytes, failure_code}], next_from_seq, run_status, terminal}. Call it again with from_seq set to next_from_seq to continue. wait_seconds is capped at 20 and max_events at 100; terminal true means the run is finished and there is nothing more to wait for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| from_seq | No | ||
| max_events | No | ||
| wait_seconds | No |