kick_player
Kick a waiting player from the pre-game lobby using their connection ID, atomically evicting them before gameplay starts. The player is moved back to the main lobby; only works during waiting states.
Instructions
Host-only: kick the joiner (slot B) from the room.
Only works pre-game (WAITING_FOR_PLAYERS, WAITING_READY). The kicked player's connection returns to IN_LOBBY. Cannot be used during gameplay.
── Locking ── Whole sequence runs under state_lock so status + joiner lookup + eviction are atomic.
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": {
"connection_id": "<connection_id>"
},
"name": "kick_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes |