spawn_push
Push game changes live to every open room, staging and committing on engine 6.0+ git worlds, or compiling and uploading specs on older document worlds.
Instructions
Push your work live (~1s in every open room). The lane is detected from the world's engine. ON ENGINE 6.0+ (git lane) this stages, commits and git-pushes the clone: message is REQUIRED and is not a log line — its first line lands in the creator's chat and their changes list under your name, so write one plain sentence about what changed for the PLAYER ("the getaway car keeps its grip on wet streets"), never how you did it, never a file or a function; put the how in body, which is also where you leave Savi what she needs. The result carries the remote: verdict lines — rooms, players, and each room's reading of your change. A push refused as non-fast-forward means origin moved: spawn_latest, then push again. ON A PRE-6.0 WORLD (document lane) it is unchanged: compile the project and PUT the spec; on 409 version_conflict call spawn_latest, merge .theirs receipts and push again. In team mode document-lane pushes are serialised and rebased onto head first. Either way a successful push proves it parsed, nothing more — look at spawn_play_screenshot before calling the work done, and if what you pushed is visual and untextured or plainly styled, the missing piece is a skill you did not load (spawn_skill ids: drawn-art, custom-materials, looks, game-ui); spawn_audit_ui answers the other question, what UI you never built at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Engine 6.0+ only: the commit body — the how, and anything Savi needs. She reads it on the creator's next turn; there is no other door into her chat. | |
| force | No | Document lane only: whole-replace without base-version rail / discard .theirs (destructive) | |
| dryRun | No | Document lane: validate the push without saving. Git lane: run the local pre-flight and report what WOULD be committed, without committing or pushing. | |
| message | No | Engine 6.0+ ONLY, and required there: the commit's first line, which IS the creator's chat line. One plain sentence about what changed for the player — "the tram now stops at the north platform". Not a file, not a function, not a diagnosis. Ignored on the document lane. | |
| projectDir | No | Absolute path to the Spawn game project (game.json / .env). Defaults to SPAWN_PROJECT_DIR or the MCP process cwd. | |
| engineVersion | No | Optional engine version this call assumes: a semver ('6.0.0', '5.4') or an era name ('6.0' for a git world, 'document' for a pre-6.0 one). Omit it and the world's engine is detected from the API and cached. When passed it is CHECKED against the real pin and a mismatch fails the call without writing anything — it is an assertion, not an override. |