join_room
Join or create an end-to-end encrypted room using a room code, or auto-generate a high-entropy code and shareable invite to connect friends’ or colleagues’ AI clients across devices.
Instructions
凭房间码和朋友/同事的 AI 客户端一键跨端加密联机(支持传脱敏日志与去 EXIF 截图)。不传 room_code 时自动生成高熵暗号房间码并返回可复制给朋友的邀请口令。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "join_room"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nickname | No | 展示给群成员的临时昵称 | 匿名用户 |
| max_peers | No | 群聊人数上限,默认 8 人 | |
| room_code | No | 可选:至少 8 位的高熵房间码(如 proj-rust-8x9k);若不传则自动生成全新高熵暗号房间码并返回一键发给朋友/同事的邀请口令 | |
| transport | No | 可选:"relay"(默认,隐匿公网 IP)或 "p2p"(直连暴露公网 IP) | |
| allow_ip_exposure | No | 仅当明确选择 transport="p2p" 且用户已知晓并同意暴露公网 IP 时设为 true |