Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
script_pathYes
framesNo60
attributesNo
timeoutNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kitao/pyxel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server