update_member
Updates your own nickname in a group chat using your member ID and token; attempts to edit other members are rejected.
Instructions
修改群成员信息。
目前后端仅支持修改昵称,且只有本人可以修改自己的信息。
Args: group_id: 群组 ID。 token: 本人身份令牌。 member_id: 要修改的成员 ID。 updates: 字段名到新值的映射,目前仅支持 {"name": "新昵称"}。
Returns: 修改后的成员信息。
Raises: GroupNotFoundError: 群组不存在。 NotGroupMemberError: 本人不在群内。 NotSelfError: 试图修改其他成员。 InvalidFieldError: 字段名不存在。 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>",
"token": "<token>",
"member_id": "<member_id>",
"updates": "<updates>"
},
"name": "update_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| updates | Yes | ||
| group_id | Yes | ||
| member_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||