join_lobby
Join an existing Secret Hitler Online lobby as a player or reconnect to a game after disconnecting by providing the lobby code or invite link and player name.
Instructions
Join an existing lobby as a player (or rejoin a game you were disconnected from). The host creates the lobby in the browser and shares the code. lobby_code may also be a full invite link (e.g. https://secret-hitler.online/?lobby=ABCD); server_url may be the public website, which is mapped to its game backend.
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": {
"lobby_code": "<lobby_code>",
"player_name": "<player_name>"
},
"name": "join_lobby"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lobby_code | Yes | ||
| server_url | No | http://localhost:4040 | |
| player_name | Yes |