Authorizations
Body
Game/session identifiers plus the coordinate payload.
Payload for coordinate-based actions (e.g. /api/cmd/ACTION6
).
Supplies an (x, y)
location on the 64 × 64 game grid along with
the game/session identifiers so the engine can apply the action
to the correct running instance.
Identifier of the game receiving this action.
Server-generated session ID obtained from the RESET call.
Horizontal coordinate on the game grid (0 = left, 63 = right).
0 <= x <= 63
Vertical coordinate on the game grid (0 = top, 63 = bottom).
0 <= x <= 63
Optional, caller-defined JSON blob (≤ 16 KB) capturing the agent's internal reasoning, model parameters, or any other metadata you'd like to store alongside the action.
Response
Frame returned after executing the action.
Snapshot returned after every RESET or ACTION command.
Includes the latest visual frame(s), cumulative score details, the
current game state, and an echo of the triggering action.
Game identifier for the running session.
Server-generated session ID; use this for all subsequent commands.
One or more consecutive visual frames. Each frame is a 64 × 64 grid of 4-bit colour indices (integers 0-15). Multiple frames may be returned if the environment advances internally (e.g., animations) before settling.
Current state of the session:
• NOT_FINISHED - game in progress, not yet WIN or GAME_OVER.
• NOT_STARTED - session has ended (WIN or GAME_OVER) and requires RESET.
• WIN - session ended in victory.
• GAME_OVER - session ended in defeat.
NOT_FINISHED
, NOT_STARTED
, WIN
, GAME_OVER
Current cumulative score for this run.
0 <= x <= 254
Score threshold required to reach the WIN state. Mirrors the game's configured win condition so agents can adapt dynamically without hard-coding values.
0 <= x <= 254
Echo of the command that produced this frame.
List of available actions for the current game.