join_group
Join a group chat and receive a unique member token for identity-required actions; the first member to join becomes the group owner.
Instructions
加入群组。
如果群组还没有群主,本次入群的成员会自动成为群主。返回的 token 是该成员在群内的唯一身份凭证,后续所有需要身份的操作都要传入。
Args: group_id: 群组 ID。 name: 群内昵称,长度 1 到 16 个字符;省略时由服务端自动生成。
Returns: 成员信息,包含昵称、成员 ID、token、所属群组 ID 与入群时间戳。
Raises: GroupNotFoundError: 群组不存在。 JoinNotAllowedError: 该群不允许新人加入。 InvalidFieldValueError: 昵称不合法。
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": {
"group_id": "<group_id>"
},
"name": "join_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| group_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||