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供重连使用。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ws:// 或 wss:// 地址;省略时使用连接配置中的默认游戏后端或 GAME_SERVER_URL | |
| name | No | AI玩家 | |
| room | Yes | ||
| playerId | No | 自己的固定唯一ID;省略则自动生成 |