join_game
Connects an AI agent to a 250game room as an ordinary player, joining before play starts and spectating if a new ID arrives mid-game. Returns a playerId for reconnection.
Instructions
以普通玩家身份连接250游戏。开局前加入;开局后新ID只能旁观。返回playerId供重连使用。
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": {
"room": "<room>"
},
"name": "join_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ws:// 或 wss:// 地址;省略时使用连接配置中的默认游戏后端或 GAME_SERVER_URL | |
| name | No | AI玩家 | |
| room | Yes | ||
| playerId | No | 自己的固定唯一ID;省略则自动生成 |