run
Headlessly execute Pyxel scripts for a frame budget or stop condition, scheduling inputs and capturing screen, state, or video.
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 | ||
| frame_count | Yes | ||
| elapsed_seconds | Yes |