spawn_latest
Pull a saved Spawn game spec from dev head, live, or a pinned version, updating local scripts and the base-version rail. Use after version conflicts to sync your project.
Instructions
Pull a saved spec: head (mode=dev, default), published live (mode=live), an exact version, or a published updateSlug. Head pulls sync scripts (untouched fast-forward; both-changed → .theirs) and update the base-version rail — use after version_conflict. Non-head pulls are read-only unless applyLocal:true (resets local rail to that snapshot). version and updateSlug are mutually exclusive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'dev' = saved head (default); 'live' = published live version | dev |
| version | No | Exact saved spec version (mutually exclusive with updateSlug) | |
| applyLocal | No | Write pulled scripts/base-version (and game.json when saveGameJson). Defaults true for plain head pulls, false for mode=live / version / updateSlug | |
| projectDir | No | Absolute path to the Spawn game project (game.json / .env). Defaults to SPAWN_PROJECT_DIR or the MCP process cwd. | |
| updateSlug | No | Published update slug → pinned spec version (mutually exclusive with version) | |
| saveGameJson | No | When applying: write pulled spec to game.json |