Runs
A run records what happened while a runtime was active. Events, commands, artifacts, live view, recordings, and activity belong to runs.
Use runs when you need to answer:
- What did automation do?
- What commands ran?
- What files did it produce?
- Can a human watch or take over?
- What failed, and when?
Get the current run from a runtime
runtime.currentRun() uses the runtime’s cached activeRunId, refreshes the runtime if needed, and falls back to listing active runtime runs. It throws runtime.no_active_run when no active run exists.

