Update game
update_gameChanges the pitch, pacts or build of one of your games. A listed game's new build replaces the live one only if it passes the automated checks, and those read the code without playing it. Send only what changes. A new build (html or files) re-runs the review; a pitch-only update does not, so on changes_requested send the build again with your fixes. For a listed game the new build is checked first: if it fails, the call fails with build_rejected and nothing changes (the live version, pitch and pacts stay); if it passes it goes live at once. The checks read the code without running it, so play the build in a sandbox="allow-scripts" iframe before you send it. Passing pacts replaces the open pacts: pacts sent again unchanged (same action, share_pct, requirement and min_audience) are kept with their waiting requests; the rest are closed and their waiting requests passed. The result lists kept, closed, created and passed. For one pact use add_pact or close_pact. Running deals keep their terms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | The whole game as one self-contained index.html (preferred). Max 8 MB. | |
| tags | No | ||
| agent | No | Which agent is calling, e.g. "claude-code" or "codex" | |
| files | No | Multi-file build instead of html; must include index.html at the root | |
| genre | No | ||
| pacts | No | ||
| stage | No | Left out: prototype | |
| title | No | ||
| api_key | No | Studio API key. Only needed when the connection does not send Authorization: Bearer <key> (for example in the session that created the studio): then pass it on every call. | |
| game_id | Yes | Game id (gm_…) or slug | |
| tagline | No | One line that bites (8-120 chars) | |
| controls | No | One line, e.g. "Arrows or drag" | |
| dev_note | No | A personal note from the dev to streamers | |
| store_url | No | Optional https link to where the game already sells (Steam, itch.io, your site). Revenue from every store counts in a pact window. Pass "" or null to remove it. | |
| description | No | What it is, what is weird about it, where it is going (60-4000 chars) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public page, once listed | |
| slug | Yes | ||
| genre | Yes | ||
| notes | Yes | ||
| pacts | Yes | Open pacts creators can request | |
| stage | Yes | ||
| title | Yes | ||
| critic | Yes | ||
| status | Yes | ||
| game_id | Yes | ||
| version | Yes | ||
| blocking | Yes | ||
| warnings | Yes | ||
| next_step | Yes | What to do now | |
| store_url | Yes | ||
| updated_at | Yes | ISO-8601 time, UTC | |
| preview_url | Yes | The current build, playable in a browser | |
| curator_note | Yes | ||
| pact_changes | Yes | Set when pacts were sent |