feat(onebot): expose friend remarks in stranger info

Return the already-decoded profile remark from fetched and cached get_stranger_info results, document its fallback shape, and regenerate the MCP action catalog.

Fixes #290
This commit is contained in:
DrSmoothl committed 2026-07-28 23:59:25 +08:00
1 parent eeaa5436fd
commit 19e3135e63
6 files changed
+38 -10

No files matched your search

+6 -1
View File
@@ -6384,7 +6384,7 @@
"name": "get_stranger_info",
"aliases": [],
"summary": "获取陌生人信息",
"returns": "陌生人资料:QQ 号、昵称、性别、年龄与个性签名,命中资料时另含等级。",
"returns": "用户资料:QQ 号、昵称、好友备注、性别、年龄与个性签名,命中资料时另含等级。",
"returnsSchema": {
"type": "object",
"properties": {
@@ -6396,6 +6396,10 @@
"type": "string",
"description": "昵称"
},
"remark": {
"type": "string",
"description": "好友备注;非好友或未设置时为空字符串"
},
"sex": {
"type": "string",
"description": "性别(male/female/unknown)"
@@ -6420,6 +6424,7 @@
"required": [
"user_id",
"nickname",
"remark",
"sex",
"age",
"long_nick"
+6 -1
View File
@@ -6387,7 +6387,7 @@ export const ACTIONS: CatalogAction[] = [
"name": "get_stranger_info",
"aliases": [],
"summary": "获取陌生人信息",
"returns": "陌生人资料:QQ 号、昵称、性别、年龄与个性签名,命中资料时另含等级。",
"returns": "用户资料:QQ 号、昵称、好友备注、性别、年龄与个性签名,命中资料时另含等级。",
"returnsSchema": {
"type": "object",
"properties": {
@@ -6399,6 +6399,10 @@ export const ACTIONS: CatalogAction[] = [
"type": "string",
"description": "昵称"
},
"remark": {
"type": "string",
"description": "好友备注;非好友或未设置时为空字符串"
},
"sex": {
"type": "string",
"description": "性别(male/female/unknown)"
@@ -6423,6 +6427,7 @@ export const ACTIONS: CatalogAction[] = [
"required": [
"user_id",
"nickname",
"remark",
"sex",
"age",
"long_nick"