佩戴 / 取消佩戴徽章
noy_set_badgeSafely toggles a badge's wearing status by validating its ID against the badge table, ensuring idempotent updates and preventing invalid entries.
Instructions
设置徽章佩戴状态。接口本身是开关式且不校验 ID(传垃圾值会写进 show 数组),所以本工具会先校验 ID 是否在徽章表里,再按当前状态决定是否需要切换,保证幂等。
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": {
"badge_id": "<badge_id>"
},
"name": "noy_set_badge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wear | No | true = 佩戴,false = 取消佩戴 | |
| badge_id | Yes | 徽章 ID,来自 noy_list_badges |