publish_game
Publishes a staged build as a game on YouGame, live at once, skipping the creator's review. Needs the creator's API key and their explicit instruction: the normal path is prepare_submission, which hands the creator a review link where they press Publish themselves. Call this only when the creator explicitly told you, in their own words, to publish without opening the review page ("looks good" about a draft is not that); never because it is faster. After prepare_submission the uploadId alone is enough (every other field keeps the draft's value); otherwise pass the listing fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | 1–80 characters. | |
| genres | No | Up to 3; the first is the main one. | |
| mature | No | True when the game is for adults only (blood and gore, strong language, mature themes). Ask the creator if the game's content leaves it unclear. | |
| mobile | No | True only when the game plays with touch (pointer events, on-screen controls, 44 px targets, fills the screen). Lists it for phones. | |
| api_key | No | Only when the key could not be set as the Authorization header of the MCP connection: the creator's API key (yg_…). Prefer the header (or the YOUGAME_API_KEY environment variable): a key passed here ends up in the agent's transcript and tool logs. | |
| controls | No | How the game is played. Default Keyboard. | |
| paywalls | No | The paywalls the build charges with YouGame.coins.charge(key), each priced by the creator: ask them for the price and kind. Leave it out when the game charges nothing. | |
| uploadId | Yes | From the upload reply (32 hex characters). | |
| max_score | No | Optional: the highest score the game can produce. Scores above it are held for review. Work it out from the game's scoring, or leave it out. | |
| play_mode | No | single (solo only), multiplayer (online only), or both. Default: multiplayer when the build calls findMatch, else single. | |
| thumbnail | No | The path, inside the build, of a 16:9 PNG/JPG/WebP/GIF under 8 MB for the game's card. Not needed again once one was sent with PUT /api/agent/media. | |
| description | No | Up to 1000 characters: what the game is and how to play. Write it from the game. | |
| screenshots | No | Optional: up to 8 image paths inside the build. | |
| creator_approved | Yes | True only when the creator explicitly told you, in their own words, to publish this game without opening the review page. Approval of a draft summary in chat does not count. Never assume it; the tool refuses without it. |