roster_upsert
Adds or edits a roster person, including tier, tone, relation, and permissions; supplied permissions replace existing ones, while omitting them preserves current permissions.
Instructions
加一个人或改他的定义。权限是覆盖式的:传了 perms 就整体替换,不传则保留原权限。
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": {
"uin": "<uin>"
},
"name": "roster_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uin | Yes | QQ 号 | |
| name | No | 怎么称呼他 | |
| tier | No | T0 自己人 / T1 熟人 / T2 路人(默认) / T3 雷区 | |
| tone | No | 跟他说话的语气提示 | |
| perms | No | 权限:dm 私聊 / qzone 空间 / group 群聊,只认 true | |
| relation | No | 关系,例如「主人」「朋友」 |