From 70fd40e34cd62f3dfc11013a27779574ed822479 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Fri, 26 Jun 2026 23:08:38 +0800 Subject: [PATCH] chore(mcp): regenerate catalog after returnsSchema backfill --- packages/mcp/src/generated/catalog.json | 1449 ++++++++++++++++++++++- packages/mcp/src/generated/catalog.ts | 1449 ++++++++++++++++++++++- 2 files changed, 2888 insertions(+), 10 deletions(-) diff --git a/packages/mcp/src/generated/catalog.json b/packages/mcp/src/generated/catalog.json index 314efabe..31fbc9fc 100644 --- a/packages/mcp/src/generated/catalog.json +++ b/packages/mcp/src/generated/catalog.json @@ -94,6 +94,35 @@ "name": "_get_model_show", "aliases": [], "summary": "获取机型展示(兼容 mock)", + "returns": "数组,每项含 variants(回显请求的机型名与 need_pay 标记)。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "variants": { + "type": "object", + "properties": { + "model_show": { + "type": "string", + "description": "机型展示名(回显请求的 model,缺省 snowluma)" + }, + "need_pay": { + "type": "boolean", + "description": "是否需付费(恒 false)" + } + }, + "required": [ + "model_show", + "need_pay" + ] + } + }, + "required": [ + "variants" + ] + } + }, "readOnly": true, "params": [ { @@ -292,6 +321,19 @@ { "name": "can_send_image", "aliases": [], + "returns": "能力查询结果。", + "returnsSchema": { + "type": "object", + "properties": { + "yes": { + "type": "boolean", + "description": "是否支持发送图片" + } + }, + "required": [ + "yes" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -305,6 +347,19 @@ { "name": "can_send_record", "aliases": [], + "returns": "能力查询结果。", + "returnsSchema": { + "type": "object", + "properties": { + "yes": { + "type": "boolean", + "description": "是否支持发送语音" + } + }, + "required": [ + "yes" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -443,6 +498,19 @@ "name": "check_url_safely", "aliases": [], "summary": "检查链接安全性", + "returns": "{ level }:安全等级(占位实现,恒为 1)。", + "returnsSchema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "description": "安全等级(占位,恒 1)" + } + }, + "required": [ + "level" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -1378,6 +1446,14 @@ "name": "fetch_custom_face", "aliases": [], "summary": "获取自定义表情", + "returns": "字符串数组:return_type=url 时为图片 URL,return_type=id 时为 emoji_id。", + "returnsSchema": { + "type": "array", + "items": { + "type": "string", + "description": "图片 URL 或 emoji_id(取决于 return_type)" + } + }, "readOnly": true, "params": [ { @@ -1422,6 +1498,66 @@ "name": "fetch_emoji_like", "aliases": [], "summary": "获取表情回应用户(NapCat 分页)", + "returns": "分页的表情回应用户列表(NapCat 形状),含分页游标 cookie 与首/末页标记。", + "returnsSchema": { + "type": "object", + "properties": { + "result": { + "type": "integer", + "description": "结果码(恒 0)" + }, + "errMsg": { + "type": "string", + "description": "错误信息(恒空串)" + }, + "emojiLikesList": { + "type": "array", + "description": "回应用户列表", + "items": { + "type": "object", + "properties": { + "tinyId": { + "type": "string", + "description": "用户 QQ 号(字符串)" + }, + "nickName": { + "type": "string", + "description": "昵称(恒空串)" + }, + "headUrl": { + "type": "string", + "description": "头像 URL(恒空串)" + } + }, + "required": [ + "tinyId", + "nickName", + "headUrl" + ] + } + }, + "cookie": { + "type": "string", + "description": "下一页游标(末页为空串)" + }, + "isLastPage": { + "type": "boolean", + "description": "是否末页" + }, + "isFirstPage": { + "type": "boolean", + "description": "是否首页" + } + }, + "required": [ + "result", + "errMsg", + "emojiLikesList", + "cookie", + "isLastPage", + "isFirstPage" + ] + }, "readOnly": true, "params": [ { @@ -1503,6 +1639,19 @@ "get_record_text" ], "summary": "获取语音转文字结果", + "returns": "{ text }:语音识别出的文本。", + "returnsSchema": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "语音转写文本" + } + }, + "required": [ + "text" + ] + }, "readOnly": true, "params": [ { @@ -1677,6 +1826,49 @@ "name": "get_ai_characters", "aliases": [], "summary": "获取 AI 语音角色", + "returns": "按分类分组的 AI 语音角色列表,每组含分类名与角色(id、名称、试听 URL)。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "角色分类名" + }, + "characters": { + "type": "array", + "description": "该分类下的角色列表", + "items": { + "type": "object", + "properties": { + "character_id": { + "type": "string", + "description": "角色 ID" + }, + "character_name": { + "type": "string", + "description": "角色显示名" + }, + "preview_url": { + "type": "string", + "description": "试听音频 URL" + } + }, + "required": [ + "character_id", + "character_name", + "preview_url" + ] + } + } + }, + "required": [ + "type", + "characters" + ] + } + }, "readOnly": true, "params": [ { @@ -1803,6 +1995,29 @@ "name": "get_clientkey", "aliases": [], "summary": "获取 clientkey", + "returns": "{ clientKey, expireTime, keyIndex }:clientkey 及其过期时间与索引。", + "returnsSchema": { + "type": "object", + "properties": { + "clientKey": { + "type": "string", + "description": "clientkey" + }, + "expireTime": { + "type": "string", + "description": "过期时间" + }, + "keyIndex": { + "type": "string", + "description": "key 索引" + } + }, + "required": [ + "clientKey", + "expireTime", + "keyIndex" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -1817,6 +2032,11 @@ "name": "get_collection_list", "aliases": [], "summary": "获取收藏列表(占位)", + "returns": "占位实现,恒返回空数组。", + "returnsSchema": { + "type": "array", + "description": "收藏列表(占位,恒空)" + }, "readOnly": true, "params": [], "invariants": [], @@ -1831,6 +2051,19 @@ "name": "get_cookies", "aliases": [], "summary": "获取 Cookies", + "returns": "{ cookies }:指定域名的 Cookie 字符串。", + "returnsSchema": { + "type": "object", + "properties": { + "cookies": { + "type": "string", + "description": "该域名的 Cookie 字符串" + } + }, + "required": [ + "cookies" + ] + }, "readOnly": true, "params": [ { @@ -1860,6 +2093,29 @@ "name": "get_credentials", "aliases": [], "summary": "获取凭证", + "returns": "{ cookies, token, csrf_token }:Cookie 字符串与 CSRF 令牌(token 与 csrf_token 同值)。", + "returnsSchema": { + "type": "object", + "properties": { + "cookies": { + "type": "string", + "description": "该域名的 Cookie 字符串" + }, + "token": { + "type": "integer", + "description": "CSRF 令牌(bkn)" + }, + "csrf_token": { + "type": "integer", + "description": "CSRF 令牌(同 token)" + } + }, + "required": [ + "cookies", + "token", + "csrf_token" + ] + }, "readOnly": true, "params": [ { @@ -1889,6 +2145,19 @@ "name": "get_csrf_token", "aliases": [], "summary": "获取 CSRF 令牌", + "returns": "{ token }:CSRF 令牌(bkn,数值)。", + "returnsSchema": { + "type": "object", + "properties": { + "token": { + "type": "integer", + "description": "CSRF 令牌(bkn)" + } + }, + "required": [ + "token" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -1903,6 +2172,42 @@ "name": "get_doubt_friends_add_request", "aliases": [], "summary": "获取可疑好友申请", + "returns": "可疑好友申请数组,每项含 uid(作为处理用 flag)、昵称、来源、留言与申请时间。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string", + "description": "申请人 uid(回传作 set_doubt_friends_add_request 的 flag)" + }, + "nick": { + "type": "string", + "description": "申请人昵称" + }, + "source": { + "type": "string", + "description": "申请来源" + }, + "msg": { + "type": "string", + "description": "验证留言" + }, + "reqTime": { + "type": "integer", + "description": "申请时间戳" + } + }, + "required": [ + "uid", + "nick", + "source", + "msg", + "reqTime" + ] + } + }, "readOnly": true, "params": [ { @@ -1934,6 +2239,36 @@ "name": "get_emoji_likes", "aliases": [], "summary": "获取表情回应用户", + "returns": "{ emoji_like_list }:回应该表情的用户列表(nick_name 恒为空串)。", + "returnsSchema": { + "type": "object", + "properties": { + "emoji_like_list": { + "type": "array", + "description": "回应用户列表", + "items": { + "type": "object", + "properties": { + "user_id": { + "type": "string", + "description": "用户 QQ 号(字符串)" + }, + "nick_name": { + "type": "string", + "description": "昵称(当前实现恒为空串)" + } + }, + "required": [ + "user_id", + "nick_name" + ] + } + } + }, + "required": [ + "emoji_like_list" + ] + }, "readOnly": true, "params": [ { @@ -2060,7 +2395,19 @@ "name": "get_fileset_id", "aliases": [], "summary": "从分享码/链接获取 fileset_id", - "returns": "{ fileset_id }", + "returns": "{ fileset_id }:解析出的文件集 ID。", + "returnsSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "description": "文件集 ID" + } + }, + "required": [ + "fileset_id" + ] + }, "readOnly": true, "params": [ { @@ -2211,7 +2558,22 @@ "name": "get_forward_msg", "aliases": [], "summary": "获取合并转发消息(id 或 message_id)", - "returns": "{ messages }", + "returns": "{ messages }:转发内的消息节点数组(每项为 OneBot 消息事件,内部字段不固定)。", + "returnsSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "description": "转发消息节点数组", + "items": { + "type": "object" + } + } + }, + "required": [ + "messages" + ] + }, "readOnly": true, "params": [ { @@ -2239,6 +2601,32 @@ "name": "get_friend_list", "aliases": [], "summary": "获取好友列表", + "returns": "好友列表数组,每项含 QQ 号、昵称与备注。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "好友 QQ 号" + }, + "nickname": { + "type": "string", + "description": "好友昵称" + }, + "remark": { + "type": "string", + "description": "好友备注" + } + }, + "required": [ + "user_id", + "nickname", + "remark" + ] + } + }, "readOnly": true, "params": [], "invariants": [], @@ -2253,6 +2641,22 @@ "name": "get_friend_msg_history", "aliases": [], "summary": "获取好友消息历史", + "returns": "{ messages }:好友消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。", + "returnsSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "description": "消息事件对象数组", + "items": { + "type": "object" + } + } + }, + "required": [ + "messages" + ] + }, "readOnly": true, "params": [ { @@ -2326,6 +2730,38 @@ { "name": "get_group_album_list", "aliases": [], + "returns": "群相册列表数组,每项为一个相册的基本信息。", + "returnsSchema": { + "type": "array", + "description": "群相册列表", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "相册 id" + }, + "name": { + "type": "string", + "description": "相册名称" + }, + "picNum": { + "type": "integer", + "description": "相册内照片数量" + }, + "createTime": { + "type": "integer", + "description": "相册创建时间(unix 秒)" + } + }, + "required": [ + "id", + "name", + "picNum", + "createTime" + ] + } + }, "readOnly": true, "params": [ { @@ -2359,6 +2795,27 @@ { "name": "get_group_album_media_list", "aliases": [], + "returns": "相册媒体列表及下一页分页游标:{mediaList, nextAttachInfo}。", + "returnsSchema": { + "type": "object", + "properties": { + "mediaList": { + "type": "array", + "description": "相册媒体项列表(各项字段不固定)", + "items": { + "type": "object" + } + }, + "nextAttachInfo": { + "type": "string", + "description": "下一页分页游标(空串表示无更多)" + } + }, + "required": [ + "mediaList", + "nextAttachInfo" + ] + }, "readOnly": true, "params": [ { @@ -2420,6 +2877,29 @@ "name": "get_group_at_all_remain", "aliases": [], "summary": "获取群 @全体成员 剩余次数", + "returns": "{ can_at_all, remain_at_all_count_for_group, remain_at_all_count_for_uin }:@全体可用性与剩余次数。", + "returnsSchema": { + "type": "object", + "properties": { + "can_at_all": { + "type": "boolean", + "description": "当前是否可 @全体成员" + }, + "remain_at_all_count_for_group": { + "type": "integer", + "description": "本群今日剩余 @全体次数" + }, + "remain_at_all_count_for_uin": { + "type": "integer", + "description": "本账号今日剩余 @全体次数" + } + }, + "required": [ + "can_at_all", + "remain_at_all_count_for_group", + "remain_at_all_count_for_uin" + ] + }, "readOnly": true, "params": [ { @@ -2486,6 +2966,34 @@ "name": "get_group_file_system_info", "aliases": [], "summary": "获取群文件系统信息", + "returns": "{ file_count, limit_count, used_space, total_space }:群文件数量与容量信息(used_space 恒 0,total_space 为固定 10GiB 常量)。", + "returnsSchema": { + "type": "object", + "properties": { + "file_count": { + "type": "integer", + "description": "当前文件数" + }, + "limit_count": { + "type": "integer", + "description": "最大文件数" + }, + "used_space": { + "type": "integer", + "description": "已用空间(占位,恒 0)" + }, + "total_space": { + "type": "integer", + "description": "总空间(占位,恒 10GiB)" + } + }, + "required": [ + "file_count", + "limit_count", + "used_space", + "total_space" + ] + }, "readOnly": true, "params": [ { @@ -2520,7 +3028,19 @@ "name": "get_group_file_url", "aliases": [], "summary": "获取群文件下载链接", - "returns": "{ url: string }", + "returns": "群文件下载链接。", + "returnsSchema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "文件下载直链" + } + }, + "required": [ + "url" + ] + }, "readOnly": true, "params": [ { @@ -2576,6 +3096,106 @@ "name": "get_group_files_by_folder", "aliases": [], "summary": "获取群子目录文件列表", + "returns": "群文件系统信息(文件与文件夹列表)。", + "returnsSchema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "description": "文件列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "file_id": { + "type": "string", + "description": "文件 ID" + }, + "file_name": { + "type": "string", + "description": "文件名" + }, + "busid": { + "type": "integer", + "description": "业务 ID" + }, + "file_size": { + "type": "integer", + "description": "文件大小(字节)" + }, + "upload_time": { + "type": "integer", + "description": "上传时间戳" + }, + "dead_time": { + "type": "integer", + "description": "过期时间戳" + }, + "modify_time": { + "type": "integer", + "description": "修改时间戳" + }, + "download_times": { + "type": "integer", + "description": "下载次数" + }, + "uploader": { + "type": "integer", + "description": "上传者 QQ 号" + }, + "uploader_name": { + "type": "string", + "description": "上传者昵称" + } + } + } + }, + "folders": { + "type": "array", + "description": "文件夹列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "folder_id": { + "type": "string", + "description": "文件夹 ID" + }, + "folder_name": { + "type": "string", + "description": "文件夹名" + }, + "create_time": { + "type": "integer", + "description": "创建时间戳" + }, + "creator": { + "type": "integer", + "description": "创建者 QQ 号" + }, + "create_name": { + "type": "string", + "description": "创建者昵称" + }, + "total_file_count": { + "type": "integer", + "description": "文件夹内文件总数" + } + } + } + } + }, + "required": [ + "files", + "folders" + ] + }, "readOnly": true, "params": [ { @@ -2677,6 +3297,62 @@ "name": "get_group_ignore_add_request", "aliases": [], "summary": "获取被忽略的入群请求(NapCat)", + "returns": "被忽略的入群请求数组(NapCat 字段命名),每项含请求序列、邀请人、群信息与处理标记。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "request_id": { + "type": "integer", + "description": "请求序列号" + }, + "invitor_uin": { + "type": "integer", + "description": "邀请人 QQ 号" + }, + "invitor_nick": { + "type": "string", + "description": "邀请人昵称" + }, + "group_id": { + "type": "integer", + "description": "群号" + }, + "message": { + "type": "string", + "description": "验证留言" + }, + "group_name": { + "type": "string", + "description": "群名称" + }, + "checked": { + "type": "boolean", + "description": "是否已处理" + }, + "actor": { + "type": "integer", + "description": "处理人 QQ 号" + }, + "requester_nick": { + "type": "string", + "description": "申请人昵称" + } + }, + "required": [ + "request_id", + "invitor_uin", + "invitor_nick", + "group_id", + "message", + "group_name", + "checked", + "actor", + "requester_nick" + ] + } + }, "readOnly": true, "params": [], "invariants": [], @@ -2691,6 +3367,72 @@ "name": "get_group_ignored_notifies", "aliases": [], "summary": "获取被过滤的入群请求", + "returns": "被过滤的入群请求数组,每项含群号、申请人、邀请人、留言与处理标记。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "group_name": { + "type": "string", + "description": "群名称" + }, + "request_id": { + "type": "integer", + "description": "请求序列号" + }, + "requester_uin": { + "type": "integer", + "description": "申请人 QQ 号" + }, + "requester_nick": { + "type": "string", + "description": "申请人昵称" + }, + "message": { + "type": "string", + "description": "验证留言" + }, + "checked": { + "type": "boolean", + "description": "是否已处理" + }, + "actor": { + "type": "integer", + "description": "处理人 QQ 号" + }, + "invitor_uin": { + "type": "integer", + "description": "邀请人 QQ 号" + }, + "invitor_nick": { + "type": "string", + "description": "邀请人昵称" + }, + "flag": { + "type": "string", + "description": "处理用 flag(eventType:groupId:targetUid:filtered)" + } + }, + "required": [ + "group_id", + "group_name", + "request_id", + "requester_uin", + "requester_nick", + "message", + "checked", + "actor", + "invitor_uin", + "invitor_nick", + "flag" + ] + } + }, "readOnly": true, "params": [], "invariants": [], @@ -2812,6 +3554,37 @@ "name": "get_group_list", "aliases": [], "summary": "获取群列表", + "returns": "群信息对象数组。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "group_name": { + "type": "string", + "description": "群名" + }, + "member_count": { + "type": "integer", + "description": "当前成员数" + }, + "max_member_count": { + "type": "integer", + "description": "成员上限" + } + }, + "required": [ + "group_id", + "group_name", + "member_count", + "max_member_count" + ] + } + }, "readOnly": true, "params": [ { @@ -2970,6 +3743,75 @@ "name": "get_group_member_list", "aliases": [], "summary": "获取群成员列表", + "returns": "群成员信息对象数组。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "user_id": { + "type": "integer", + "description": "QQ 号" + }, + "nickname": { + "type": "string", + "description": "昵称" + }, + "card": { + "type": "string", + "description": "群名片" + }, + "sex": { + "type": "string", + "enum": [ + "male", + "female", + "unknown" + ], + "description": "性别" + }, + "age": { + "type": "integer", + "description": "年龄" + }, + "join_time": { + "type": "integer", + "description": "入群时间戳(秒)" + }, + "last_sent_time": { + "type": "integer", + "description": "最后发言时间戳(秒)" + }, + "level": { + "type": "string", + "description": "群等级" + }, + "role": { + "type": "string", + "enum": [ + "owner", + "admin", + "member" + ], + "description": "角色" + }, + "title": { + "type": "string", + "description": "专属头衔" + } + }, + "required": [ + "group_id", + "user_id", + "nickname", + "role" + ] + } + }, "readOnly": true, "params": [ { @@ -3017,6 +3859,22 @@ "name": "get_group_msg_history", "aliases": [], "summary": "获取群消息历史", + "returns": "{ messages }:群消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。", + "returnsSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "description": "消息事件对象数组", + "items": { + "type": "object" + } + } + }, + "required": [ + "messages" + ] + }, "readOnly": true, "params": [ { @@ -3079,6 +3937,106 @@ "name": "get_group_root_files", "aliases": [], "summary": "获取群根目录文件列表", + "returns": "群文件系统信息(文件与文件夹列表)。", + "returnsSchema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "description": "文件列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "file_id": { + "type": "string", + "description": "文件 ID" + }, + "file_name": { + "type": "string", + "description": "文件名" + }, + "busid": { + "type": "integer", + "description": "业务 ID" + }, + "file_size": { + "type": "integer", + "description": "文件大小(字节)" + }, + "upload_time": { + "type": "integer", + "description": "上传时间戳" + }, + "dead_time": { + "type": "integer", + "description": "过期时间戳" + }, + "modify_time": { + "type": "integer", + "description": "修改时间戳" + }, + "download_times": { + "type": "integer", + "description": "下载次数" + }, + "uploader": { + "type": "integer", + "description": "上传者 QQ 号" + }, + "uploader_name": { + "type": "string", + "description": "上传者昵称" + } + } + } + }, + "folders": { + "type": "array", + "description": "文件夹列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "folder_id": { + "type": "string", + "description": "文件夹 ID" + }, + "folder_name": { + "type": "string", + "description": "文件夹名" + }, + "create_time": { + "type": "integer", + "description": "创建时间戳" + }, + "creator": { + "type": "integer", + "description": "创建者 QQ 号" + }, + "create_name": { + "type": "string", + "description": "创建者昵称" + }, + "total_file_count": { + "type": "integer", + "description": "文件夹内文件总数" + } + } + } + } + }, + "required": [ + "files", + "folders" + ] + }, "readOnly": true, "params": [ { @@ -3113,6 +4071,32 @@ "name": "get_group_shut_list", "aliases": [], "summary": "获取群禁言列表", + "returns": "仍在禁言中的成员数组,每项含 QQ 号、昵称与禁言到期时间戳(秒)。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "成员 QQ 号" + }, + "nickname": { + "type": "string", + "description": "成员昵称" + }, + "shut_up_time": { + "type": "integer", + "description": "禁言到期时间戳(秒)" + } + }, + "required": [ + "user_id", + "nickname", + "shut_up_time" + ] + } + }, "readOnly": true, "params": [ { @@ -3282,6 +4266,7 @@ "name": "get_msg", "aliases": [], "summary": "获取消息", + "returns": "消息事件对象(首次收到时存储的副本,已去除 post_type/self_id、附带 real_id 字段并刷新图片 URL)。", "readOnly": true, "params": [ { @@ -3318,6 +4303,19 @@ "name": "get_online_clients", "aliases": [], "summary": "获取在线客户端(占位,OneBot v11 形状)", + "returns": "{ clients }:在线设备列表(占位,clients 恒为空数组)。", + "returnsSchema": { + "type": "object", + "properties": { + "clients": { + "type": "array", + "description": "在线设备列表(占位,恒空)" + } + }, + "required": [ + "clients" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -3332,7 +4330,19 @@ "name": "get_private_file_url", "aliases": [], "summary": "获取私聊文件下载链接", - "returns": "{ url: string }", + "returns": "私聊文件下载链接。", + "returnsSchema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "文件下载直链" + } + }, + "required": [ + "url" + ] + }, "readOnly": true, "params": [ { @@ -3391,6 +4401,74 @@ "name": "get_profile_like", "aliases": [], "summary": "获取资料点赞", + "returns": "点赞资料:uid、最近点赞时间、收藏(favoriteInfo)与点赞(voteInfo)统计。", + "returnsSchema": { + "type": "object", + "properties": { + "uid": { + "type": "string", + "description": "用户 uid" + }, + "time": { + "type": "integer", + "description": "最近点赞时间戳" + }, + "favoriteInfo": { + "type": "object", + "description": "收藏统计", + "properties": { + "total_count": { + "type": "integer", + "description": "收藏总数" + }, + "last_time": { + "type": "integer", + "description": "最近收藏时间戳" + }, + "today_count": { + "type": "integer", + "description": "今日收藏数" + }, + "userInfos": { + "type": "array", + "description": "用户列表(恒空)" + } + } + }, + "voteInfo": { + "type": "object", + "description": "点赞统计", + "properties": { + "total_count": { + "type": "integer", + "description": "点赞总数" + }, + "new_count": { + "type": "integer", + "description": "新增点赞数" + }, + "new_nearby_count": { + "type": "integer", + "description": "附近的人新增点赞数" + }, + "last_visit_time": { + "type": "integer", + "description": "最近访问时间戳" + }, + "userInfos": { + "type": "array", + "description": "用户列表(恒空)" + } + } + } + }, + "required": [ + "uid", + "time", + "favoriteInfo", + "voteInfo" + ] + }, "readOnly": true, "params": [ { @@ -3451,6 +4529,56 @@ { "name": "get_qun_album_list", "aliases": [], + "returns": "NapCat 风格的相册列表封套:{album_list, attach_info, has_more}(本实现 attach_info 恒为空串、has_more 恒为 false)。", + "returnsSchema": { + "type": "object", + "properties": { + "album_list": { + "type": "array", + "description": "相册列表", + "items": { + "type": "object", + "properties": { + "album_id": { + "type": "string", + "description": "相册 id" + }, + "album_name": { + "type": "string", + "description": "相册名称" + }, + "create_time": { + "type": "integer", + "description": "相册创建时间(unix 秒)" + }, + "pic_num": { + "type": "integer", + "description": "相册内照片数量" + } + }, + "required": [ + "album_id", + "album_name", + "create_time", + "pic_num" + ] + } + }, + "attach_info": { + "type": "string", + "description": "分页游标(本 web 实现一次取满,恒为空串)" + }, + "has_more": { + "type": "boolean", + "description": "是否还有更多(本 web 实现恒为 false)" + } + }, + "required": [ + "album_list", + "attach_info", + "has_more" + ] + }, "readOnly": true, "params": [ { @@ -3485,6 +4613,61 @@ "name": "get_qzone_feeds", "aliases": [], "summary": "获取 QQ 空间好友动态(feed);page_num 仅首页可靠,深翻页需时间游标(暂未实现)", + "returns": "好友动态对象,含本页 feed 数组与是否有更多页。", + "returnsSchema": { + "type": "object", + "properties": { + "feeds": { + "type": "array", + "description": "本页好友动态数组", + "items": { + "type": "object", + "properties": { + "uin": { + "type": "integer", + "description": "动态作者 QQ 号" + }, + "nickname": { + "type": "string", + "description": "作者昵称" + }, + "time": { + "type": "integer", + "description": "发表时间(unix 秒)" + }, + "appid": { + "type": "integer", + "description": "Qzone 应用 id(311=说说,4=相册,…)" + }, + "key": { + "type": "string", + "description": "feed 句柄(Qzone 用于定位该条动态)" + }, + "html": { + "type": "string", + "description": "预渲染 HTML 原样透传" + } + }, + "required": [ + "uin", + "nickname", + "time", + "appid", + "key", + "html" + ] + } + }, + "has_more": { + "type": "boolean", + "description": "服务端是否报告本页之后还有更多页" + } + }, + "required": [ + "feeds", + "has_more" + ] + }, "readOnly": true, "params": [ { @@ -3537,6 +4720,64 @@ "name": "get_qzone_msg_list", "aliases": [], "summary": "获取 QQ 空间说说列表(默认机器人自己的空间)", + "returns": "说说列表对象,含说说总数与本页说说数组。", + "returnsSchema": { + "type": "object", + "properties": { + "total": { + "type": "integer", + "description": "账号说说总数(非本页数量)" + }, + "msglist": { + "type": "array", + "description": "本页说说数组", + "items": { + "type": "object", + "properties": { + "tid": { + "type": "string", + "description": "说说 id(delete/comment/like 的句柄)" + }, + "content": { + "type": "string", + "description": "说说正文" + }, + "time": { + "type": "integer", + "description": "发表时间(unix 秒)" + }, + "comment_num": { + "type": "integer", + "description": "评论数" + }, + "is_private": { + "type": "boolean", + "description": "是否仅自己可见" + }, + "images": { + "type": "array", + "items": { + "type": "string" + }, + "description": "图片 URL 列表(每图取最大可用变体)" + } + }, + "required": [ + "tid", + "content", + "time", + "comment_num", + "is_private", + "images" + ] + } + } + }, + "required": [ + "total", + "msglist" + ] + }, "readOnly": true, "params": [ { @@ -3604,6 +4845,11 @@ "name": "get_recent_contact", "aliases": [], "summary": "获取最近会话(占位)", + "returns": "占位实现,恒返回空数组。", + "returnsSchema": { + "type": "array", + "description": "最近会话列表(占位,恒空)" + }, "readOnly": true, "params": [ { @@ -3693,6 +4939,32 @@ "name": "get_rkey_server", "aliases": [], "summary": "获取 rkey 服务器信息", + "returns": "{ expired_time, name, private_rkey?, group_rkey? }:rkey 过期时间与(存在时的)私聊/群聊 rkey。", + "returnsSchema": { + "type": "object", + "properties": { + "expired_time": { + "type": "integer", + "description": "过期时间戳(秒)" + }, + "name": { + "type": "string", + "description": "服务器名(恒 SnowLuma)" + }, + "private_rkey": { + "type": "string", + "description": "私聊 rkey(存在时返回)" + }, + "group_rkey": { + "type": "string", + "description": "群聊 rkey(存在时返回)" + } + }, + "required": [ + "expired_time", + "name" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -3770,6 +5042,42 @@ "name": "get_stranger_info", "aliases": [], "summary": "获取陌生人信息", + "returns": "陌生人资料:QQ 号、昵称、性别、年龄,命中资料时另含等级。", + "returnsSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "QQ 号" + }, + "nickname": { + "type": "string", + "description": "昵称" + }, + "sex": { + "type": "string", + "description": "性别(male/female/unknown)" + }, + "age": { + "type": "integer", + "description": "年龄" + }, + "qq_level": { + "type": "integer", + "description": "QQ 等级(仅查到资料时返回)" + }, + "level": { + "type": "integer", + "description": "QQ 等级,同 qq_level(仅查到资料时返回)" + } + }, + "required": [ + "user_id", + "nickname", + "sex", + "age" + ] + }, "readOnly": true, "params": [ { @@ -4284,6 +5592,11 @@ "name": "nc_get_packet_status", "aliases": [], "summary": "获取 packet 状态(占位)", + "returns": "占位实现,恒返回 null。", + "returnsSchema": { + "type": "null", + "description": "packet 状态(占位,恒 null)" + }, "readOnly": true, "params": [], "invariants": [], @@ -4298,6 +5611,24 @@ "name": "nc_get_user_status", "aliases": [], "summary": "获取用户在线/扩展状态", + "returns": "{ status, ext_status }:用户在线状态码与扩展状态码。", + "returnsSchema": { + "type": "object", + "properties": { + "status": { + "type": "integer", + "description": "在线状态码" + }, + "ext_status": { + "type": "integer", + "description": "扩展状态码" + } + }, + "required": [ + "status", + "ext_status" + ] + }, "readOnly": true, "params": [ { @@ -4332,6 +5663,63 @@ ".ocr_image" ], "summary": "OCR 图片(服务端,需图片 URL 或已缓存的图片 file_id)", + "returns": "{ texts, language }:识别文本数组(含置信度与坐标)与识别语言。", + "returnsSchema": { + "type": "object", + "properties": { + "texts": { + "type": "array", + "description": "识别出的文本块", + "items": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "文本内容" + }, + "confidence": { + "type": "number", + "description": "置信度" + }, + "coordinates": { + "type": "array", + "description": "文本框顶点坐标", + "items": { + "type": "object", + "properties": { + "x": { + "type": "number", + "description": "X 坐标" + }, + "y": { + "type": "number", + "description": "Y 坐标" + } + }, + "required": [ + "x", + "y" + ] + } + } + }, + "required": [ + "text", + "confidence", + "coordinates" + ] + } + }, + "language": { + "type": "string", + "description": "识别语言" + } + }, + "required": [ + "texts", + "language" + ] + }, "readOnly": true, "params": [ { @@ -4591,6 +5979,19 @@ "name": "send_ark_share", "aliases": [], "summary": "分享用户/群 Ark 卡片(NapCat 标准名)", + "returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "object", + "properties": { + "arkMsg": { + "type": "string", + "description": "Ark 卡片 JSON 字符串" + } + }, + "required": [ + "arkMsg" + ] + }, "readOnly": true, "params": [ { @@ -4821,6 +6222,11 @@ "name": "send_group_ark_share", "aliases": [], "summary": "分享群 Ark 卡片(NapCat 标准名)", + "returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "string", + "description": "群 Ark 卡片 JSON 字符串" + }, "readOnly": true, "params": [ { @@ -6953,6 +8359,11 @@ "name": "share_group_ex", "aliases": [], "summary": "分享群 Ark 卡片", + "returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "string", + "description": "群 Ark 卡片 JSON 字符串" + }, "readOnly": true, "params": [ { @@ -6985,6 +8396,19 @@ "name": "share_peer", "aliases": [], "summary": "分享用户/群 Ark 卡片", + "returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "object", + "properties": { + "arkMsg": { + "type": "string", + "description": "Ark 卡片 JSON 字符串" + } + }, + "required": [ + "arkMsg" + ] + }, "readOnly": true, "params": [ { @@ -7054,7 +8478,22 @@ "name": "translate_en2zh", "aliases": [], "summary": "英译中", - "returns": "{ words }", + "returns": "{ words }:与输入等长的中文译文字符串数组。", + "returnsSchema": { + "type": "object", + "properties": { + "words": { + "type": "array", + "description": "译文数组", + "items": { + "type": "string" + } + } + }, + "required": [ + "words" + ] + }, "readOnly": true, "params": [ { diff --git a/packages/mcp/src/generated/catalog.ts b/packages/mcp/src/generated/catalog.ts index 15a92cc1..3cb4dba9 100644 --- a/packages/mcp/src/generated/catalog.ts +++ b/packages/mcp/src/generated/catalog.ts @@ -97,6 +97,35 @@ export const ACTIONS: CatalogAction[] = [ "name": "_get_model_show", "aliases": [], "summary": "获取机型展示(兼容 mock)", + "returns": "数组,每项含 variants(回显请求的机型名与 need_pay 标记)。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "variants": { + "type": "object", + "properties": { + "model_show": { + "type": "string", + "description": "机型展示名(回显请求的 model,缺省 snowluma)" + }, + "need_pay": { + "type": "boolean", + "description": "是否需付费(恒 false)" + } + }, + "required": [ + "model_show", + "need_pay" + ] + } + }, + "required": [ + "variants" + ] + } + }, "readOnly": true, "params": [ { @@ -295,6 +324,19 @@ export const ACTIONS: CatalogAction[] = [ { "name": "can_send_image", "aliases": [], + "returns": "能力查询结果。", + "returnsSchema": { + "type": "object", + "properties": { + "yes": { + "type": "boolean", + "description": "是否支持发送图片" + } + }, + "required": [ + "yes" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -308,6 +350,19 @@ export const ACTIONS: CatalogAction[] = [ { "name": "can_send_record", "aliases": [], + "returns": "能力查询结果。", + "returnsSchema": { + "type": "object", + "properties": { + "yes": { + "type": "boolean", + "description": "是否支持发送语音" + } + }, + "required": [ + "yes" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -446,6 +501,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "check_url_safely", "aliases": [], "summary": "检查链接安全性", + "returns": "{ level }:安全等级(占位实现,恒为 1)。", + "returnsSchema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "description": "安全等级(占位,恒 1)" + } + }, + "required": [ + "level" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -1381,6 +1449,14 @@ export const ACTIONS: CatalogAction[] = [ "name": "fetch_custom_face", "aliases": [], "summary": "获取自定义表情", + "returns": "字符串数组:return_type=url 时为图片 URL,return_type=id 时为 emoji_id。", + "returnsSchema": { + "type": "array", + "items": { + "type": "string", + "description": "图片 URL 或 emoji_id(取决于 return_type)" + } + }, "readOnly": true, "params": [ { @@ -1425,6 +1501,66 @@ export const ACTIONS: CatalogAction[] = [ "name": "fetch_emoji_like", "aliases": [], "summary": "获取表情回应用户(NapCat 分页)", + "returns": "分页的表情回应用户列表(NapCat 形状),含分页游标 cookie 与首/末页标记。", + "returnsSchema": { + "type": "object", + "properties": { + "result": { + "type": "integer", + "description": "结果码(恒 0)" + }, + "errMsg": { + "type": "string", + "description": "错误信息(恒空串)" + }, + "emojiLikesList": { + "type": "array", + "description": "回应用户列表", + "items": { + "type": "object", + "properties": { + "tinyId": { + "type": "string", + "description": "用户 QQ 号(字符串)" + }, + "nickName": { + "type": "string", + "description": "昵称(恒空串)" + }, + "headUrl": { + "type": "string", + "description": "头像 URL(恒空串)" + } + }, + "required": [ + "tinyId", + "nickName", + "headUrl" + ] + } + }, + "cookie": { + "type": "string", + "description": "下一页游标(末页为空串)" + }, + "isLastPage": { + "type": "boolean", + "description": "是否末页" + }, + "isFirstPage": { + "type": "boolean", + "description": "是否首页" + } + }, + "required": [ + "result", + "errMsg", + "emojiLikesList", + "cookie", + "isLastPage", + "isFirstPage" + ] + }, "readOnly": true, "params": [ { @@ -1506,6 +1642,19 @@ export const ACTIONS: CatalogAction[] = [ "get_record_text" ], "summary": "获取语音转文字结果", + "returns": "{ text }:语音识别出的文本。", + "returnsSchema": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "语音转写文本" + } + }, + "required": [ + "text" + ] + }, "readOnly": true, "params": [ { @@ -1680,6 +1829,49 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_ai_characters", "aliases": [], "summary": "获取 AI 语音角色", + "returns": "按分类分组的 AI 语音角色列表,每组含分类名与角色(id、名称、试听 URL)。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "角色分类名" + }, + "characters": { + "type": "array", + "description": "该分类下的角色列表", + "items": { + "type": "object", + "properties": { + "character_id": { + "type": "string", + "description": "角色 ID" + }, + "character_name": { + "type": "string", + "description": "角色显示名" + }, + "preview_url": { + "type": "string", + "description": "试听音频 URL" + } + }, + "required": [ + "character_id", + "character_name", + "preview_url" + ] + } + } + }, + "required": [ + "type", + "characters" + ] + } + }, "readOnly": true, "params": [ { @@ -1806,6 +1998,29 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_clientkey", "aliases": [], "summary": "获取 clientkey", + "returns": "{ clientKey, expireTime, keyIndex }:clientkey 及其过期时间与索引。", + "returnsSchema": { + "type": "object", + "properties": { + "clientKey": { + "type": "string", + "description": "clientkey" + }, + "expireTime": { + "type": "string", + "description": "过期时间" + }, + "keyIndex": { + "type": "string", + "description": "key 索引" + } + }, + "required": [ + "clientKey", + "expireTime", + "keyIndex" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -1820,6 +2035,11 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_collection_list", "aliases": [], "summary": "获取收藏列表(占位)", + "returns": "占位实现,恒返回空数组。", + "returnsSchema": { + "type": "array", + "description": "收藏列表(占位,恒空)" + }, "readOnly": true, "params": [], "invariants": [], @@ -1834,6 +2054,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_cookies", "aliases": [], "summary": "获取 Cookies", + "returns": "{ cookies }:指定域名的 Cookie 字符串。", + "returnsSchema": { + "type": "object", + "properties": { + "cookies": { + "type": "string", + "description": "该域名的 Cookie 字符串" + } + }, + "required": [ + "cookies" + ] + }, "readOnly": true, "params": [ { @@ -1863,6 +2096,29 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_credentials", "aliases": [], "summary": "获取凭证", + "returns": "{ cookies, token, csrf_token }:Cookie 字符串与 CSRF 令牌(token 与 csrf_token 同值)。", + "returnsSchema": { + "type": "object", + "properties": { + "cookies": { + "type": "string", + "description": "该域名的 Cookie 字符串" + }, + "token": { + "type": "integer", + "description": "CSRF 令牌(bkn)" + }, + "csrf_token": { + "type": "integer", + "description": "CSRF 令牌(同 token)" + } + }, + "required": [ + "cookies", + "token", + "csrf_token" + ] + }, "readOnly": true, "params": [ { @@ -1892,6 +2148,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_csrf_token", "aliases": [], "summary": "获取 CSRF 令牌", + "returns": "{ token }:CSRF 令牌(bkn,数值)。", + "returnsSchema": { + "type": "object", + "properties": { + "token": { + "type": "integer", + "description": "CSRF 令牌(bkn)" + } + }, + "required": [ + "token" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -1906,6 +2175,42 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_doubt_friends_add_request", "aliases": [], "summary": "获取可疑好友申请", + "returns": "可疑好友申请数组,每项含 uid(作为处理用 flag)、昵称、来源、留言与申请时间。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uid": { + "type": "string", + "description": "申请人 uid(回传作 set_doubt_friends_add_request 的 flag)" + }, + "nick": { + "type": "string", + "description": "申请人昵称" + }, + "source": { + "type": "string", + "description": "申请来源" + }, + "msg": { + "type": "string", + "description": "验证留言" + }, + "reqTime": { + "type": "integer", + "description": "申请时间戳" + } + }, + "required": [ + "uid", + "nick", + "source", + "msg", + "reqTime" + ] + } + }, "readOnly": true, "params": [ { @@ -1937,6 +2242,36 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_emoji_likes", "aliases": [], "summary": "获取表情回应用户", + "returns": "{ emoji_like_list }:回应该表情的用户列表(nick_name 恒为空串)。", + "returnsSchema": { + "type": "object", + "properties": { + "emoji_like_list": { + "type": "array", + "description": "回应用户列表", + "items": { + "type": "object", + "properties": { + "user_id": { + "type": "string", + "description": "用户 QQ 号(字符串)" + }, + "nick_name": { + "type": "string", + "description": "昵称(当前实现恒为空串)" + } + }, + "required": [ + "user_id", + "nick_name" + ] + } + } + }, + "required": [ + "emoji_like_list" + ] + }, "readOnly": true, "params": [ { @@ -2063,7 +2398,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_fileset_id", "aliases": [], "summary": "从分享码/链接获取 fileset_id", - "returns": "{ fileset_id }", + "returns": "{ fileset_id }:解析出的文件集 ID。", + "returnsSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "description": "文件集 ID" + } + }, + "required": [ + "fileset_id" + ] + }, "readOnly": true, "params": [ { @@ -2214,7 +2561,22 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_forward_msg", "aliases": [], "summary": "获取合并转发消息(id 或 message_id)", - "returns": "{ messages }", + "returns": "{ messages }:转发内的消息节点数组(每项为 OneBot 消息事件,内部字段不固定)。", + "returnsSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "description": "转发消息节点数组", + "items": { + "type": "object" + } + } + }, + "required": [ + "messages" + ] + }, "readOnly": true, "params": [ { @@ -2242,6 +2604,32 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_friend_list", "aliases": [], "summary": "获取好友列表", + "returns": "好友列表数组,每项含 QQ 号、昵称与备注。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "好友 QQ 号" + }, + "nickname": { + "type": "string", + "description": "好友昵称" + }, + "remark": { + "type": "string", + "description": "好友备注" + } + }, + "required": [ + "user_id", + "nickname", + "remark" + ] + } + }, "readOnly": true, "params": [], "invariants": [], @@ -2256,6 +2644,22 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_friend_msg_history", "aliases": [], "summary": "获取好友消息历史", + "returns": "{ messages }:好友消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。", + "returnsSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "description": "消息事件对象数组", + "items": { + "type": "object" + } + } + }, + "required": [ + "messages" + ] + }, "readOnly": true, "params": [ { @@ -2329,6 +2733,38 @@ export const ACTIONS: CatalogAction[] = [ { "name": "get_group_album_list", "aliases": [], + "returns": "群相册列表数组,每项为一个相册的基本信息。", + "returnsSchema": { + "type": "array", + "description": "群相册列表", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "相册 id" + }, + "name": { + "type": "string", + "description": "相册名称" + }, + "picNum": { + "type": "integer", + "description": "相册内照片数量" + }, + "createTime": { + "type": "integer", + "description": "相册创建时间(unix 秒)" + } + }, + "required": [ + "id", + "name", + "picNum", + "createTime" + ] + } + }, "readOnly": true, "params": [ { @@ -2362,6 +2798,27 @@ export const ACTIONS: CatalogAction[] = [ { "name": "get_group_album_media_list", "aliases": [], + "returns": "相册媒体列表及下一页分页游标:{mediaList, nextAttachInfo}。", + "returnsSchema": { + "type": "object", + "properties": { + "mediaList": { + "type": "array", + "description": "相册媒体项列表(各项字段不固定)", + "items": { + "type": "object" + } + }, + "nextAttachInfo": { + "type": "string", + "description": "下一页分页游标(空串表示无更多)" + } + }, + "required": [ + "mediaList", + "nextAttachInfo" + ] + }, "readOnly": true, "params": [ { @@ -2423,6 +2880,29 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_at_all_remain", "aliases": [], "summary": "获取群 @全体成员 剩余次数", + "returns": "{ can_at_all, remain_at_all_count_for_group, remain_at_all_count_for_uin }:@全体可用性与剩余次数。", + "returnsSchema": { + "type": "object", + "properties": { + "can_at_all": { + "type": "boolean", + "description": "当前是否可 @全体成员" + }, + "remain_at_all_count_for_group": { + "type": "integer", + "description": "本群今日剩余 @全体次数" + }, + "remain_at_all_count_for_uin": { + "type": "integer", + "description": "本账号今日剩余 @全体次数" + } + }, + "required": [ + "can_at_all", + "remain_at_all_count_for_group", + "remain_at_all_count_for_uin" + ] + }, "readOnly": true, "params": [ { @@ -2489,6 +2969,34 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_file_system_info", "aliases": [], "summary": "获取群文件系统信息", + "returns": "{ file_count, limit_count, used_space, total_space }:群文件数量与容量信息(used_space 恒 0,total_space 为固定 10GiB 常量)。", + "returnsSchema": { + "type": "object", + "properties": { + "file_count": { + "type": "integer", + "description": "当前文件数" + }, + "limit_count": { + "type": "integer", + "description": "最大文件数" + }, + "used_space": { + "type": "integer", + "description": "已用空间(占位,恒 0)" + }, + "total_space": { + "type": "integer", + "description": "总空间(占位,恒 10GiB)" + } + }, + "required": [ + "file_count", + "limit_count", + "used_space", + "total_space" + ] + }, "readOnly": true, "params": [ { @@ -2523,7 +3031,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_file_url", "aliases": [], "summary": "获取群文件下载链接", - "returns": "{ url: string }", + "returns": "群文件下载链接。", + "returnsSchema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "文件下载直链" + } + }, + "required": [ + "url" + ] + }, "readOnly": true, "params": [ { @@ -2579,6 +3099,106 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_files_by_folder", "aliases": [], "summary": "获取群子目录文件列表", + "returns": "群文件系统信息(文件与文件夹列表)。", + "returnsSchema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "description": "文件列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "file_id": { + "type": "string", + "description": "文件 ID" + }, + "file_name": { + "type": "string", + "description": "文件名" + }, + "busid": { + "type": "integer", + "description": "业务 ID" + }, + "file_size": { + "type": "integer", + "description": "文件大小(字节)" + }, + "upload_time": { + "type": "integer", + "description": "上传时间戳" + }, + "dead_time": { + "type": "integer", + "description": "过期时间戳" + }, + "modify_time": { + "type": "integer", + "description": "修改时间戳" + }, + "download_times": { + "type": "integer", + "description": "下载次数" + }, + "uploader": { + "type": "integer", + "description": "上传者 QQ 号" + }, + "uploader_name": { + "type": "string", + "description": "上传者昵称" + } + } + } + }, + "folders": { + "type": "array", + "description": "文件夹列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "folder_id": { + "type": "string", + "description": "文件夹 ID" + }, + "folder_name": { + "type": "string", + "description": "文件夹名" + }, + "create_time": { + "type": "integer", + "description": "创建时间戳" + }, + "creator": { + "type": "integer", + "description": "创建者 QQ 号" + }, + "create_name": { + "type": "string", + "description": "创建者昵称" + }, + "total_file_count": { + "type": "integer", + "description": "文件夹内文件总数" + } + } + } + } + }, + "required": [ + "files", + "folders" + ] + }, "readOnly": true, "params": [ { @@ -2680,6 +3300,62 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_ignore_add_request", "aliases": [], "summary": "获取被忽略的入群请求(NapCat)", + "returns": "被忽略的入群请求数组(NapCat 字段命名),每项含请求序列、邀请人、群信息与处理标记。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "request_id": { + "type": "integer", + "description": "请求序列号" + }, + "invitor_uin": { + "type": "integer", + "description": "邀请人 QQ 号" + }, + "invitor_nick": { + "type": "string", + "description": "邀请人昵称" + }, + "group_id": { + "type": "integer", + "description": "群号" + }, + "message": { + "type": "string", + "description": "验证留言" + }, + "group_name": { + "type": "string", + "description": "群名称" + }, + "checked": { + "type": "boolean", + "description": "是否已处理" + }, + "actor": { + "type": "integer", + "description": "处理人 QQ 号" + }, + "requester_nick": { + "type": "string", + "description": "申请人昵称" + } + }, + "required": [ + "request_id", + "invitor_uin", + "invitor_nick", + "group_id", + "message", + "group_name", + "checked", + "actor", + "requester_nick" + ] + } + }, "readOnly": true, "params": [], "invariants": [], @@ -2694,6 +3370,72 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_ignored_notifies", "aliases": [], "summary": "获取被过滤的入群请求", + "returns": "被过滤的入群请求数组,每项含群号、申请人、邀请人、留言与处理标记。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "group_name": { + "type": "string", + "description": "群名称" + }, + "request_id": { + "type": "integer", + "description": "请求序列号" + }, + "requester_uin": { + "type": "integer", + "description": "申请人 QQ 号" + }, + "requester_nick": { + "type": "string", + "description": "申请人昵称" + }, + "message": { + "type": "string", + "description": "验证留言" + }, + "checked": { + "type": "boolean", + "description": "是否已处理" + }, + "actor": { + "type": "integer", + "description": "处理人 QQ 号" + }, + "invitor_uin": { + "type": "integer", + "description": "邀请人 QQ 号" + }, + "invitor_nick": { + "type": "string", + "description": "邀请人昵称" + }, + "flag": { + "type": "string", + "description": "处理用 flag(eventType:groupId:targetUid:filtered)" + } + }, + "required": [ + "group_id", + "group_name", + "request_id", + "requester_uin", + "requester_nick", + "message", + "checked", + "actor", + "invitor_uin", + "invitor_nick", + "flag" + ] + } + }, "readOnly": true, "params": [], "invariants": [], @@ -2815,6 +3557,37 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_list", "aliases": [], "summary": "获取群列表", + "returns": "群信息对象数组。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "group_name": { + "type": "string", + "description": "群名" + }, + "member_count": { + "type": "integer", + "description": "当前成员数" + }, + "max_member_count": { + "type": "integer", + "description": "成员上限" + } + }, + "required": [ + "group_id", + "group_name", + "member_count", + "max_member_count" + ] + } + }, "readOnly": true, "params": [ { @@ -2973,6 +3746,75 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_member_list", "aliases": [], "summary": "获取群成员列表", + "returns": "群成员信息对象数组。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "user_id": { + "type": "integer", + "description": "QQ 号" + }, + "nickname": { + "type": "string", + "description": "昵称" + }, + "card": { + "type": "string", + "description": "群名片" + }, + "sex": { + "type": "string", + "enum": [ + "male", + "female", + "unknown" + ], + "description": "性别" + }, + "age": { + "type": "integer", + "description": "年龄" + }, + "join_time": { + "type": "integer", + "description": "入群时间戳(秒)" + }, + "last_sent_time": { + "type": "integer", + "description": "最后发言时间戳(秒)" + }, + "level": { + "type": "string", + "description": "群等级" + }, + "role": { + "type": "string", + "enum": [ + "owner", + "admin", + "member" + ], + "description": "角色" + }, + "title": { + "type": "string", + "description": "专属头衔" + } + }, + "required": [ + "group_id", + "user_id", + "nickname", + "role" + ] + } + }, "readOnly": true, "params": [ { @@ -3020,6 +3862,22 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_msg_history", "aliases": [], "summary": "获取群消息历史", + "returns": "{ messages }:群消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。", + "returnsSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "description": "消息事件对象数组", + "items": { + "type": "object" + } + } + }, + "required": [ + "messages" + ] + }, "readOnly": true, "params": [ { @@ -3082,6 +3940,106 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_root_files", "aliases": [], "summary": "获取群根目录文件列表", + "returns": "群文件系统信息(文件与文件夹列表)。", + "returnsSchema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "description": "文件列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "file_id": { + "type": "string", + "description": "文件 ID" + }, + "file_name": { + "type": "string", + "description": "文件名" + }, + "busid": { + "type": "integer", + "description": "业务 ID" + }, + "file_size": { + "type": "integer", + "description": "文件大小(字节)" + }, + "upload_time": { + "type": "integer", + "description": "上传时间戳" + }, + "dead_time": { + "type": "integer", + "description": "过期时间戳" + }, + "modify_time": { + "type": "integer", + "description": "修改时间戳" + }, + "download_times": { + "type": "integer", + "description": "下载次数" + }, + "uploader": { + "type": "integer", + "description": "上传者 QQ 号" + }, + "uploader_name": { + "type": "string", + "description": "上传者昵称" + } + } + } + }, + "folders": { + "type": "array", + "description": "文件夹列表", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "description": "群号" + }, + "folder_id": { + "type": "string", + "description": "文件夹 ID" + }, + "folder_name": { + "type": "string", + "description": "文件夹名" + }, + "create_time": { + "type": "integer", + "description": "创建时间戳" + }, + "creator": { + "type": "integer", + "description": "创建者 QQ 号" + }, + "create_name": { + "type": "string", + "description": "创建者昵称" + }, + "total_file_count": { + "type": "integer", + "description": "文件夹内文件总数" + } + } + } + } + }, + "required": [ + "files", + "folders" + ] + }, "readOnly": true, "params": [ { @@ -3116,6 +4074,32 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_shut_list", "aliases": [], "summary": "获取群禁言列表", + "returns": "仍在禁言中的成员数组,每项含 QQ 号、昵称与禁言到期时间戳(秒)。", + "returnsSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "成员 QQ 号" + }, + "nickname": { + "type": "string", + "description": "成员昵称" + }, + "shut_up_time": { + "type": "integer", + "description": "禁言到期时间戳(秒)" + } + }, + "required": [ + "user_id", + "nickname", + "shut_up_time" + ] + } + }, "readOnly": true, "params": [ { @@ -3285,6 +4269,7 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_msg", "aliases": [], "summary": "获取消息", + "returns": "消息事件对象(首次收到时存储的副本,已去除 post_type/self_id、附带 real_id 字段并刷新图片 URL)。", "readOnly": true, "params": [ { @@ -3321,6 +4306,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_online_clients", "aliases": [], "summary": "获取在线客户端(占位,OneBot v11 形状)", + "returns": "{ clients }:在线设备列表(占位,clients 恒为空数组)。", + "returnsSchema": { + "type": "object", + "properties": { + "clients": { + "type": "array", + "description": "在线设备列表(占位,恒空)" + } + }, + "required": [ + "clients" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -3335,7 +4333,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_private_file_url", "aliases": [], "summary": "获取私聊文件下载链接", - "returns": "{ url: string }", + "returns": "私聊文件下载链接。", + "returnsSchema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "文件下载直链" + } + }, + "required": [ + "url" + ] + }, "readOnly": true, "params": [ { @@ -3394,6 +4404,74 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_profile_like", "aliases": [], "summary": "获取资料点赞", + "returns": "点赞资料:uid、最近点赞时间、收藏(favoriteInfo)与点赞(voteInfo)统计。", + "returnsSchema": { + "type": "object", + "properties": { + "uid": { + "type": "string", + "description": "用户 uid" + }, + "time": { + "type": "integer", + "description": "最近点赞时间戳" + }, + "favoriteInfo": { + "type": "object", + "description": "收藏统计", + "properties": { + "total_count": { + "type": "integer", + "description": "收藏总数" + }, + "last_time": { + "type": "integer", + "description": "最近收藏时间戳" + }, + "today_count": { + "type": "integer", + "description": "今日收藏数" + }, + "userInfos": { + "type": "array", + "description": "用户列表(恒空)" + } + } + }, + "voteInfo": { + "type": "object", + "description": "点赞统计", + "properties": { + "total_count": { + "type": "integer", + "description": "点赞总数" + }, + "new_count": { + "type": "integer", + "description": "新增点赞数" + }, + "new_nearby_count": { + "type": "integer", + "description": "附近的人新增点赞数" + }, + "last_visit_time": { + "type": "integer", + "description": "最近访问时间戳" + }, + "userInfos": { + "type": "array", + "description": "用户列表(恒空)" + } + } + } + }, + "required": [ + "uid", + "time", + "favoriteInfo", + "voteInfo" + ] + }, "readOnly": true, "params": [ { @@ -3454,6 +4532,56 @@ export const ACTIONS: CatalogAction[] = [ { "name": "get_qun_album_list", "aliases": [], + "returns": "NapCat 风格的相册列表封套:{album_list, attach_info, has_more}(本实现 attach_info 恒为空串、has_more 恒为 false)。", + "returnsSchema": { + "type": "object", + "properties": { + "album_list": { + "type": "array", + "description": "相册列表", + "items": { + "type": "object", + "properties": { + "album_id": { + "type": "string", + "description": "相册 id" + }, + "album_name": { + "type": "string", + "description": "相册名称" + }, + "create_time": { + "type": "integer", + "description": "相册创建时间(unix 秒)" + }, + "pic_num": { + "type": "integer", + "description": "相册内照片数量" + } + }, + "required": [ + "album_id", + "album_name", + "create_time", + "pic_num" + ] + } + }, + "attach_info": { + "type": "string", + "description": "分页游标(本 web 实现一次取满,恒为空串)" + }, + "has_more": { + "type": "boolean", + "description": "是否还有更多(本 web 实现恒为 false)" + } + }, + "required": [ + "album_list", + "attach_info", + "has_more" + ] + }, "readOnly": true, "params": [ { @@ -3488,6 +4616,61 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_qzone_feeds", "aliases": [], "summary": "获取 QQ 空间好友动态(feed);page_num 仅首页可靠,深翻页需时间游标(暂未实现)", + "returns": "好友动态对象,含本页 feed 数组与是否有更多页。", + "returnsSchema": { + "type": "object", + "properties": { + "feeds": { + "type": "array", + "description": "本页好友动态数组", + "items": { + "type": "object", + "properties": { + "uin": { + "type": "integer", + "description": "动态作者 QQ 号" + }, + "nickname": { + "type": "string", + "description": "作者昵称" + }, + "time": { + "type": "integer", + "description": "发表时间(unix 秒)" + }, + "appid": { + "type": "integer", + "description": "Qzone 应用 id(311=说说,4=相册,…)" + }, + "key": { + "type": "string", + "description": "feed 句柄(Qzone 用于定位该条动态)" + }, + "html": { + "type": "string", + "description": "预渲染 HTML 原样透传" + } + }, + "required": [ + "uin", + "nickname", + "time", + "appid", + "key", + "html" + ] + } + }, + "has_more": { + "type": "boolean", + "description": "服务端是否报告本页之后还有更多页" + } + }, + "required": [ + "feeds", + "has_more" + ] + }, "readOnly": true, "params": [ { @@ -3540,6 +4723,64 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_qzone_msg_list", "aliases": [], "summary": "获取 QQ 空间说说列表(默认机器人自己的空间)", + "returns": "说说列表对象,含说说总数与本页说说数组。", + "returnsSchema": { + "type": "object", + "properties": { + "total": { + "type": "integer", + "description": "账号说说总数(非本页数量)" + }, + "msglist": { + "type": "array", + "description": "本页说说数组", + "items": { + "type": "object", + "properties": { + "tid": { + "type": "string", + "description": "说说 id(delete/comment/like 的句柄)" + }, + "content": { + "type": "string", + "description": "说说正文" + }, + "time": { + "type": "integer", + "description": "发表时间(unix 秒)" + }, + "comment_num": { + "type": "integer", + "description": "评论数" + }, + "is_private": { + "type": "boolean", + "description": "是否仅自己可见" + }, + "images": { + "type": "array", + "items": { + "type": "string" + }, + "description": "图片 URL 列表(每图取最大可用变体)" + } + }, + "required": [ + "tid", + "content", + "time", + "comment_num", + "is_private", + "images" + ] + } + } + }, + "required": [ + "total", + "msglist" + ] + }, "readOnly": true, "params": [ { @@ -3607,6 +4848,11 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_recent_contact", "aliases": [], "summary": "获取最近会话(占位)", + "returns": "占位实现,恒返回空数组。", + "returnsSchema": { + "type": "array", + "description": "最近会话列表(占位,恒空)" + }, "readOnly": true, "params": [ { @@ -3696,6 +4942,32 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_rkey_server", "aliases": [], "summary": "获取 rkey 服务器信息", + "returns": "{ expired_time, name, private_rkey?, group_rkey? }:rkey 过期时间与(存在时的)私聊/群聊 rkey。", + "returnsSchema": { + "type": "object", + "properties": { + "expired_time": { + "type": "integer", + "description": "过期时间戳(秒)" + }, + "name": { + "type": "string", + "description": "服务器名(恒 SnowLuma)" + }, + "private_rkey": { + "type": "string", + "description": "私聊 rkey(存在时返回)" + }, + "group_rkey": { + "type": "string", + "description": "群聊 rkey(存在时返回)" + } + }, + "required": [ + "expired_time", + "name" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -3773,6 +5045,42 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_stranger_info", "aliases": [], "summary": "获取陌生人信息", + "returns": "陌生人资料:QQ 号、昵称、性别、年龄,命中资料时另含等级。", + "returnsSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "QQ 号" + }, + "nickname": { + "type": "string", + "description": "昵称" + }, + "sex": { + "type": "string", + "description": "性别(male/female/unknown)" + }, + "age": { + "type": "integer", + "description": "年龄" + }, + "qq_level": { + "type": "integer", + "description": "QQ 等级(仅查到资料时返回)" + }, + "level": { + "type": "integer", + "description": "QQ 等级,同 qq_level(仅查到资料时返回)" + } + }, + "required": [ + "user_id", + "nickname", + "sex", + "age" + ] + }, "readOnly": true, "params": [ { @@ -4287,6 +5595,11 @@ export const ACTIONS: CatalogAction[] = [ "name": "nc_get_packet_status", "aliases": [], "summary": "获取 packet 状态(占位)", + "returns": "占位实现,恒返回 null。", + "returnsSchema": { + "type": "null", + "description": "packet 状态(占位,恒 null)" + }, "readOnly": true, "params": [], "invariants": [], @@ -4301,6 +5614,24 @@ export const ACTIONS: CatalogAction[] = [ "name": "nc_get_user_status", "aliases": [], "summary": "获取用户在线/扩展状态", + "returns": "{ status, ext_status }:用户在线状态码与扩展状态码。", + "returnsSchema": { + "type": "object", + "properties": { + "status": { + "type": "integer", + "description": "在线状态码" + }, + "ext_status": { + "type": "integer", + "description": "扩展状态码" + } + }, + "required": [ + "status", + "ext_status" + ] + }, "readOnly": true, "params": [ { @@ -4335,6 +5666,63 @@ export const ACTIONS: CatalogAction[] = [ ".ocr_image" ], "summary": "OCR 图片(服务端,需图片 URL 或已缓存的图片 file_id)", + "returns": "{ texts, language }:识别文本数组(含置信度与坐标)与识别语言。", + "returnsSchema": { + "type": "object", + "properties": { + "texts": { + "type": "array", + "description": "识别出的文本块", + "items": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "文本内容" + }, + "confidence": { + "type": "number", + "description": "置信度" + }, + "coordinates": { + "type": "array", + "description": "文本框顶点坐标", + "items": { + "type": "object", + "properties": { + "x": { + "type": "number", + "description": "X 坐标" + }, + "y": { + "type": "number", + "description": "Y 坐标" + } + }, + "required": [ + "x", + "y" + ] + } + } + }, + "required": [ + "text", + "confidence", + "coordinates" + ] + } + }, + "language": { + "type": "string", + "description": "识别语言" + } + }, + "required": [ + "texts", + "language" + ] + }, "readOnly": true, "params": [ { @@ -4594,6 +5982,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "send_ark_share", "aliases": [], "summary": "分享用户/群 Ark 卡片(NapCat 标准名)", + "returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "object", + "properties": { + "arkMsg": { + "type": "string", + "description": "Ark 卡片 JSON 字符串" + } + }, + "required": [ + "arkMsg" + ] + }, "readOnly": true, "params": [ { @@ -4824,6 +6225,11 @@ export const ACTIONS: CatalogAction[] = [ "name": "send_group_ark_share", "aliases": [], "summary": "分享群 Ark 卡片(NapCat 标准名)", + "returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "string", + "description": "群 Ark 卡片 JSON 字符串" + }, "readOnly": true, "params": [ { @@ -6956,6 +8362,11 @@ export const ACTIONS: CatalogAction[] = [ "name": "share_group_ex", "aliases": [], "summary": "分享群 Ark 卡片", + "returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "string", + "description": "群 Ark 卡片 JSON 字符串" + }, "readOnly": true, "params": [ { @@ -6988,6 +8399,19 @@ export const ACTIONS: CatalogAction[] = [ "name": "share_peer", "aliases": [], "summary": "分享用户/群 Ark 卡片", + "returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。", + "returnsSchema": { + "type": "object", + "properties": { + "arkMsg": { + "type": "string", + "description": "Ark 卡片 JSON 字符串" + } + }, + "required": [ + "arkMsg" + ] + }, "readOnly": true, "params": [ { @@ -7057,7 +8481,22 @@ export const ACTIONS: CatalogAction[] = [ "name": "translate_en2zh", "aliases": [], "summary": "英译中", - "returns": "{ words }", + "returns": "{ words }:与输入等长的中文译文字符串数组。", + "returnsSchema": { + "type": "object", + "properties": { + "words": { + "type": "array", + "description": "译文数组", + "items": { + "type": "string" + } + } + }, + "required": [ + "words" + ] + }, "readOnly": true, "params": [ {