inspect_state
Debug Pyxel game objects by reading their attributes at specific frames. Capture the App instance and dump attributes as JSON, with support for single frames or multi-frame timeline diffs.
Instructions
Read game object attributes at specific frames for debugging.
Captures the App instance (the class that calls pyxel.run()) and dumps its attributes as JSON. Supports single frame or comma-separated multi-frame timeline with automatic diff between frames.
Args: script_path: Absolute path to the .py script to run. frames: Frame number(s) to inspect, comma-separated (default: "60"). Use multiple frames for timeline diff: "10,30,60" attributes: Comma-separated attribute names to inspect (default: all). timeout: Maximum seconds to wait for the script (default: 10).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_path | Yes | ||
| frames | No | 60 | |
| attributes | No | ||
| timeout | No |