Set gamemode
set_gamemodeSwitch a player's game mode among survival, creative, adventure, or spectator. Creative mode allows instant breaking and free placement.
Instructions
Change the player's gamemode (creative enables instant breaking and free placement).
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": {
"mode": "<mode>"
},
"name": "set_gamemode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| player | No | Online player name (defaults to the first online player) |