run
Execute Pyxel scripts headlessly for a set frame budget or until a condition, with scheduled inputs and state, screen, or video capture for verification.
Instructions
Run a Pyxel script headlessly for a frame budget or until a condition holds, with scheduled input and state, screen, or video capture. screen_image snapshots with inline=true also return the PNG as image content, and a single inline frame may omit its output path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| until | No | ||
| frames | Yes | ||
| inputs | No | ||
| script | Yes | ||
| timeout | No | ||
| snapshots | No | ||
| random_seed | No | ||
| stall_window_frames | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| log | Yes | ||
| errors | Yes | ||
| seeded | Yes | ||
| snapshots | Yes | ||
| until_met | No | True once `until` held, False when it was evaluated without ever holding, None when it was never evaluated. | |
| exit_status | Yes | ok includes reaching the frame budget, matching until, or an explicit pyxel.quit(). Cleanup failures are reported as crashed. | |
| frame_count | Yes | Number of completed update/draw pairs; excludes a partial quit frame. | |
| elapsed_seconds | Yes |