spawn_set_variant
Join an existing Spawn game by setting SPAWN_VARIANT_ID in project .env using a variantId from spawn_list_games.
Instructions
Set SPAWN_VARIANT_ID in the project .env (join an existing game from spawn_list_games).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"variantId": "<variantId>"
},
"name": "spawn_set_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variantId | Yes | variantId from list/create games | |
| projectDir | No | Absolute path to the Spawn game project (game.json / .env). Defaults to SPAWN_PROJECT_DIR or the MCP process cwd. |