diff --git a/packages/mcp/scripts/gen-catalog.test.ts b/packages/mcp/scripts/gen-catalog.test.ts index 292a710b..a1172bc2 100644 --- a/packages/mcp/scripts/gen-catalog.test.ts +++ b/packages/mcp/scripts/gen-catalog.test.ts @@ -29,4 +29,11 @@ it('generates src/generated/catalog.ts from the live action specs', () => { const dir = new URL('../src/generated/', import.meta.url); mkdirSync(dir, { recursive: true }); writeFileSync(new URL('../src/generated/catalog.ts', import.meta.url), body); + + // Plain-JSON twin of the catalog, consumed by the docs site (SnowLumaDocs) + // via the sync-docs-catalog workflow. Same data as catalog.ts. + writeFileSync( + new URL('../src/generated/catalog.json', import.meta.url), + JSON.stringify({ actions, categories }, null, 2) + '\n', + ); }); diff --git a/packages/mcp/src/generated/catalog.json b/packages/mcp/src/generated/catalog.json new file mode 100644 index 00000000..314efabe --- /dev/null +++ b/packages/mcp/src/generated/catalog.json @@ -0,0 +1,7537 @@ +{ + "actions": [ + { + "name": "_del_group_notice", + "aliases": [], + "summary": "删除群公告(fid 或 notice_id 二选一)", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "fid", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "notice_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "fid": { + "type": "string" + }, + "notice_id": { + "type": "string" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "_get_group_notice", + "aliases": [], + "summary": "获取群公告", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "_get_model_show", + "aliases": [], + "summary": "获取机型展示(兼容 mock)", + "readOnly": true, + "params": [ + { + "name": "model", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "model": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "_mark_all_as_read", + "aliases": [], + "summary": "标记全部已读(no-op,待 RE 全读 cmd)", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "_send_group_notice", + "aliases": [], + "summary": "发送群公告", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "content", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "image", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "pinned", + "type": "raw", + "required": false, + "schema": {} + }, + { + "name": "type", + "type": "raw", + "required": false, + "schema": {} + }, + { + "name": "confirm_required", + "type": "raw", + "required": false, + "schema": {} + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "content": { + "type": "string", + "minLength": 1 + }, + "image": { + "type": "string", + "default": "" + }, + "pinned": {}, + "type": {}, + "confirm_required": {} + }, + "required": [ + "group_id", + "content" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "_set_model_show", + "aliases": [], + "summary": "设置机型展示(占位)", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": ".get_word_slices", + "aliases": [], + "summary": "分词(未实现)", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "add_custom_face", + "aliases": [], + "summary": "添加收藏表情", + "readOnly": false, + "params": [ + { + "name": "file", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "file" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "bot_exit", + "aliases": [], + "summary": "退出机器人", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "can_send_image", + "aliases": [], + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "信息" + }, + { + "name": "can_send_record", + "aliases": [], + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "信息" + }, + { + "name": "cancel_group_album_media_like", + "aliases": [], + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "album_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "batch_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "lloc", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "album_id": { + "type": "string", + "minLength": 1 + }, + "batch_id": { + "type": "string", + "minLength": 1 + }, + "lloc": { + "type": "string" + } + }, + "required": [ + "group_id", + "album_id", + "batch_id" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "cancel_group_todo", + "aliases": [], + "summary": "取消群待办", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + "required": [ + "group_id", + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "check_url_safely", + "aliases": [], + "summary": "检查链接安全性", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "clean_cache", + "aliases": [], + "summary": "清理缓存", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "click_inline_keyboard_button", + "aliases": [], + "summary": "点击内联键盘按钮", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "bot_appid", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "msg_seq", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "bot_appid": { + "type": "integer", + "minimum": 1 + }, + "msg_seq": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "group_id", + "bot_appid", + "msg_seq" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "comment_qzone", + "aliases": [], + "summary": "评论一条说说(QQ 空间)", + "readOnly": false, + "params": [ + { + "name": "tid", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + }, + "desc": "说说 tid" + }, + { + "name": "content", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + }, + "desc": "评论内容" + }, + { + "name": "target_uin", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "说说所属 QQ 号,省略则为机器人自己" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "tid": { + "type": "string", + "minLength": 1, + "description": "说说 tid" + }, + "content": { + "type": "string", + "minLength": 1, + "description": "评论内容" + }, + "target_uin": { + "type": "integer", + "minimum": 1, + "description": "说说所属 QQ 号,省略则为机器人自己" + } + }, + "required": [ + "tid", + "content" + ], + "additionalProperties": true + }, + "category": "空间" + }, + { + "name": "complete_group_todo", + "aliases": [], + "summary": "完成群待办", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + "required": [ + "group_id", + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "create_collection", + "aliases": [], + "summary": "创建收藏(未实现)", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "create_flash_task", + "aliases": [], + "summary": "创建闪传任务", + "readOnly": false, + "params": [ + { + "name": "files", + "type": "raw", + "required": false, + "schema": {} + }, + { + "name": "name", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "thumb_path", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "files": {}, + "name": { + "type": "string" + }, + "thumb_path": { + "type": "string" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "create_group_file_folder", + "aliases": [], + "summary": "创建群文件夹", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "name", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "parent_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "/" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "parent_id": { + "type": "string", + "default": "/" + } + }, + "required": [ + "group_id", + "name" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "del_group_album_media", + "aliases": [], + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "album_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "lloc", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "album_id": { + "type": "string", + "minLength": 1 + }, + "lloc": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "album_id", + "lloc" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "delete_custom_face", + "aliases": [], + "summary": "删除收藏表情", + "readOnly": false, + "params": [ + { + "name": "emoji_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "emoji_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "delete_essence_msg", + "aliases": [], + "summary": "移除精华消息", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + "required": [ + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "delete_flash_file", + "aliases": [], + "summary": "删除闪传文件", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "fileset_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "delete_friend", + "aliases": [], + "summary": "删除好友", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + }, + { + "name": "block", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + }, + "block": { + "type": "boolean", + "default": false + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "好友" + }, + { + "name": "delete_group_file", + "aliases": [], + "summary": "删除群文件", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "file_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "file_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "file_id" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "delete_group_file_folder", + "aliases": [], + "summary": "删除群文件夹", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "folder_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "folder_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "folder_id" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "delete_group_folder", + "aliases": [], + "summary": "删除群文件夹", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "folder_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "folder_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "folder_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "delete_msg", + "aliases": [], + "summary": "撤回消息", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + "required": [ + "message_id" + ], + "additionalProperties": true + }, + "category": "消息" + }, + { + "name": "delete_qzone_msg", + "aliases": [], + "summary": "删除一条说说(QQ 空间,按 tid)", + "readOnly": false, + "params": [ + { + "name": "tid", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + }, + "desc": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "tid": { + "type": "string", + "minLength": 1, + "description": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)" + } + }, + "required": [ + "tid" + ], + "additionalProperties": true + }, + "category": "空间" + }, + { + "name": "do_group_album_comment", + "aliases": [], + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "album_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "lloc", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "content", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "album_id": { + "type": "string", + "minLength": 1 + }, + "lloc": { + "type": "string", + "minLength": 1 + }, + "content": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "album_id", + "lloc", + "content" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "download_file", + "aliases": [], + "summary": "下载文件(url 或 base64)到 data/downloads", + "returns": "{ file }", + "readOnly": false, + "params": [ + { + "name": "url", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "base64", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "name", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "default": "" + }, + "base64": { + "type": "string", + "default": "" + }, + "name": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "download_fileset", + "aliases": [], + "summary": "解析闪传文件下载直链(不下载,由调用方实现下载)", + "returns": "{ url, file_name, file_size }", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "file_name", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "file_index", + "type": "number", + "required": false, + "schema": { + "type": "number" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + }, + "file_name": { + "type": "string" + }, + "file_index": { + "type": "number" + } + }, + "required": [ + "fileset_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "fetch_custom_face", + "aliases": [], + "summary": "获取自定义表情", + "readOnly": true, + "params": [ + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 10 + }, + { + "name": "return_type", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "url" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": 0, + "default": 10 + }, + "return_type": { + "type": "string", + "default": "url" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "fetch_emoji_like", + "aliases": [], + "summary": "获取表情回应用户(NapCat 分页)", + "readOnly": true, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "emojiId", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 10 + }, + { + "name": "cookie", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "emojiId": { + "type": "string", + "minLength": 1 + }, + "count": { + "type": "integer", + "minimum": 0, + "default": 10 + }, + "cookie": { + "type": "string", + "default": "" + } + }, + "required": [ + "message_id", + "emojiId" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "fetch_ptt_text", + "aliases": [ + "get_ptt_text", + "get_record_text" + ], + "summary": "获取语音转文字结果", + "readOnly": true, + "params": [ + { + "name": "message_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "forward_friend_single_msg", + "aliases": [], + "summary": "转发单条消息给好友", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "user_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "message_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "forward_group_single_msg", + "aliases": [], + "summary": "转发单条消息到群", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "message_id", + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "friend_poke", + "aliases": [], + "summary": "好友拍一拍", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "target_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "target_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_ai_characters", + "aliases": [], + "summary": "获取 AI 语音角色", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "chat_type", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 1 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "chat_type": { + "type": "integer", + "minimum": 0, + "default": 1 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_ai_record", + "aliases": [], + "summary": "生成 AI 语音", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "character", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "text", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "chat_type", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 1 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "character": { + "type": "string", + "minLength": 1 + }, + "text": { + "type": "string", + "minLength": 1 + }, + "chat_type": { + "type": "integer", + "minimum": 0, + "default": 1 + } + }, + "required": [ + "group_id", + "character", + "text" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_clientkey", + "aliases": [], + "summary": "获取 clientkey", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_collection_list", + "aliases": [], + "summary": "获取收藏列表(占位)", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_cookies", + "aliases": [], + "summary": "获取 Cookies", + "readOnly": true, + "params": [ + { + "name": "domain", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "qun.qq.com" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "domain": { + "type": "string", + "default": "qun.qq.com" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_credentials", + "aliases": [], + "summary": "获取凭证", + "readOnly": true, + "params": [ + { + "name": "domain", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "qun.qq.com" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "domain": { + "type": "string", + "default": "qun.qq.com" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_csrf_token", + "aliases": [], + "summary": "获取 CSRF 令牌", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_doubt_friends_add_request", + "aliases": [], + "summary": "获取可疑好友申请", + "readOnly": true, + "params": [ + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 50 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": 0, + "default": 50 + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_emoji_likes", + "aliases": [], + "summary": "获取表情回应用户", + "readOnly": true, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "emoji_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "emoji_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "message_id", + "emoji_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_essence_msg_list", + "aliases": [], + "summary": "获取精华消息列表", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_file", + "aliases": [], + "summary": "获取文件信息(仅图片/语音缓存;群文件请用 get_group_file_url)", + "readOnly": true, + "params": [ + { + "name": "file_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "file", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "file_id": { + "type": "string", + "default": "" + }, + "file": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_fileset_id", + "aliases": [], + "summary": "从分享码/链接获取 fileset_id", + "returns": "{ fileset_id }", + "readOnly": true, + "params": [ + { + "name": "share_code", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "share_code": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "share_code" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_fileset_info", + "aliases": [], + "summary": "获取文件集信息", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "fileset_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_flash_file_list", + "aliases": [], + "summary": "获取闪传文件列表", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "fileset_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_flash_file_url", + "aliases": [], + "summary": "获取闪传文件链接", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "file_name", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "file_index", + "type": "number", + "required": false, + "schema": { + "type": "number" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + }, + "file_name": { + "type": "string" + }, + "file_index": { + "type": "number" + } + }, + "required": [ + "fileset_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_forward_msg", + "aliases": [], + "summary": "获取合并转发消息(id 或 message_id)", + "returns": "{ messages }", + "readOnly": true, + "params": [ + { + "name": "id", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_friend_list", + "aliases": [], + "summary": "获取好友列表", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "好友" + }, + { + "name": "get_friend_msg_history", + "aliases": [], + "summary": "获取好友消息历史", + "readOnly": true, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "message_id", + "type": "int", + "required": false, + "schema": { + "type": "integer" + }, + "default": 0 + }, + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 20 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "message_id": { + "type": "integer", + "default": 0 + }, + "count": { + "type": "integer", + "minimum": 0, + "default": 20 + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_friends_with_category", + "aliases": [], + "summary": "获取分组好友列表", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_album_list", + "aliases": [], + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "get_group_album_media_list", + "aliases": [], + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "album_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "attach_info", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "album_id": { + "type": "string", + "minLength": 1 + }, + "attach_info": { + "type": "string", + "default": "" + } + }, + "required": [ + "group_id", + "album_id" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "get_group_at_all_remain", + "aliases": [], + "summary": "获取群 @全体成员 剩余次数", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_detail_info", + "aliases": [], + "summary": "获取群详细信息", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_file_system_info", + "aliases": [], + "summary": "获取群文件系统信息", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_file_url", + "aliases": [], + "summary": "获取群文件下载链接", + "returns": "{ url: string }", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "file_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "busid", + "type": "raw", + "required": false, + "schema": {} + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "file_id": { + "type": "string", + "minLength": 1 + }, + "busid": {} + }, + "required": [ + "group_id", + "file_id" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "get_group_files_by_folder", + "aliases": [], + "summary": "获取群子目录文件列表", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "folder_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "folder", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "folder_id": { + "type": "string", + "default": "" + }, + "folder": { + "type": "string", + "default": "" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "get_group_honor_info", + "aliases": [], + "summary": "获取群荣誉信息", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "type", + "type": "raw", + "required": false, + "schema": {} + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "type": {} + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群信息" + }, + { + "name": "get_group_ignore_add_request", + "aliases": [], + "summary": "获取被忽略的入群请求(NapCat)", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_ignored_notifies", + "aliases": [], + "summary": "获取被过滤的入群请求", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_info", + "aliases": [], + "summary": "获取群信息", + "returns": "群信息对象。", + "returnsSchema": { + "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": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "no_cache", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "no_cache": { + "type": "boolean", + "default": false + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群信息" + }, + { + "name": "get_group_info_ex", + "aliases": [], + "summary": "获取群信息(扩展)", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_list", + "aliases": [], + "summary": "获取群列表", + "readOnly": true, + "params": [ + { + "name": "no_cache", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "no_cache": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": true + }, + "category": "群信息" + }, + { + "name": "get_group_member_info", + "aliases": [], + "summary": "获取群成员信息", + "returns": "群成员信息对象。", + "returnsSchema": { + "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": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + }, + { + "name": "no_cache", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + }, + "no_cache": { + "type": "boolean", + "default": false + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "群信息" + }, + { + "name": "get_group_member_list", + "aliases": [], + "summary": "获取群成员列表", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "no_cache", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "no_cache": { + "type": "boolean", + "default": false + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群信息" + }, + { + "name": "get_group_msg_history", + "aliases": [], + "summary": "获取群消息历史", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "message_id", + "type": "int", + "required": false, + "schema": { + "type": "integer" + }, + "default": 0 + }, + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 20 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "message_id": { + "type": "integer", + "default": 0 + }, + "count": { + "type": "integer", + "minimum": 0, + "default": 20 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_root_files", + "aliases": [], + "summary": "获取群根目录文件列表", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "get_group_shut_list", + "aliases": [], + "summary": "获取群禁言列表", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_signed_list", + "aliases": [], + "summary": "获取群今日打卡列表", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_group_system_msg", + "aliases": [], + "summary": "获取群系统消息", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "群信息" + }, + { + "name": "get_image", + "aliases": [], + "summary": "获取图片信息", + "readOnly": true, + "params": [ + { + "name": "file", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "file_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "default": "" + }, + "file_id": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_login_info", + "aliases": [], + "returns": "当前登录账号的 QQ 号与昵称。", + "returnsSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "登录 QQ 号" + }, + "nickname": { + "type": "string", + "description": "登录昵称" + } + }, + "required": [ + "user_id", + "nickname" + ] + }, + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "信息" + }, + { + "name": "get_mini_app_ark", + "aliases": [], + "summary": "获取小程序卡片 ark", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_msg", + "aliases": [], + "summary": "获取消息", + "readOnly": true, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + "required": [ + "message_id" + ], + "additionalProperties": true + }, + "category": "消息" + }, + { + "name": "get_online_clients", + "aliases": [], + "summary": "获取在线客户端(占位,OneBot v11 形状)", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_private_file_url", + "aliases": [], + "summary": "获取私聊文件下载链接", + "returns": "{ url: string }", + "readOnly": true, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "file_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "file_hash", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "file_id": { + "type": "string", + "minLength": 1 + }, + "file_hash": { + "type": "string", + "default": "" + } + }, + "required": [ + "file_id" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "get_profile_like", + "aliases": [], + "summary": "获取资料点赞", + "readOnly": true, + "params": [ + { + "name": "user_id", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 0 + }, + { + "name": "start", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 0 + }, + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 10 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 0, + "default": 0 + }, + "start": { + "type": "integer", + "minimum": 0, + "default": 0 + }, + "count": { + "type": "integer", + "minimum": 0, + "default": 10 + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_qun_album_list", + "aliases": [], + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "get_qzone_feeds", + "aliases": [], + "summary": "获取 QQ 空间好友动态(feed);page_num 仅首页可靠,深翻页需时间游标(暂未实现)", + "readOnly": true, + "params": [ + { + "name": "page_num", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "页码(1 起;仅首页可靠)", + "default": 1 + }, + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 50 + }, + "desc": "本页数量", + "default": 10 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "page_num": { + "type": "integer", + "minimum": 1, + "description": "页码(1 起;仅首页可靠)", + "default": 1 + }, + "count": { + "type": "integer", + "minimum": 1, + "maximum": 50, + "description": "本页数量", + "default": 10 + } + }, + "additionalProperties": true + }, + "category": "空间" + }, + { + "name": "get_qzone_msg_list", + "aliases": [], + "summary": "获取 QQ 空间说说列表(默认机器人自己的空间)", + "readOnly": true, + "params": [ + { + "name": "target_uin", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "目标 QQ 号,省略则取机器人自己" + }, + { + "name": "pos", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "desc": "起始偏移", + "default": 0 + }, + { + "name": "num", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100 + }, + "desc": "本页数量", + "default": 20 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "target_uin": { + "type": "integer", + "minimum": 1, + "description": "目标 QQ 号,省略则取机器人自己" + }, + "pos": { + "type": "integer", + "minimum": 0, + "description": "起始偏移", + "default": 0 + }, + "num": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "description": "本页数量", + "default": 20 + } + }, + "additionalProperties": true + }, + "category": "空间" + }, + { + "name": "get_recent_contact", + "aliases": [], + "summary": "获取最近会话(占位)", + "readOnly": true, + "params": [ + { + "name": "count", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 10 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": 0, + "default": 10 + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_record", + "aliases": [], + "summary": "获取语音信息", + "readOnly": true, + "params": [ + { + "name": "file", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "file_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "default": "" + }, + "file_id": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_rkey", + "aliases": [ + "nc_get_rkey" + ], + "summary": "获取下载 rkey", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_rkey_server", + "aliases": [], + "summary": "获取 rkey 服务器信息", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_share_link", + "aliases": [], + "summary": "获取文件分享链接", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "fileset_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_status", + "aliases": [], + "returns": "运行状态。`online`/`good` 均表示账号是否在线。", + "returnsSchema": { + "type": "object", + "properties": { + "online": { + "type": "boolean", + "description": "是否在线" + }, + "good": { + "type": "boolean", + "description": "状态是否正常(与 online 一致)" + } + }, + "required": [ + "online", + "good" + ] + }, + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "信息" + }, + { + "name": "get_stranger_info", + "aliases": [], + "summary": "获取陌生人信息", + "readOnly": true, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "好友" + }, + { + "name": "get_unidirectional_friend_list", + "aliases": [], + "summary": "获取单向好友列表", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "get_version_info", + "aliases": [], + "returns": "实现与协议版本信息。", + "returnsSchema": { + "type": "object", + "properties": { + "app_name": { + "type": "string", + "description": "实现名称(SnowLuma)" + }, + "app_version": { + "type": "string", + "description": "实现版本" + }, + "protocol_version": { + "type": "string", + "description": "OneBot 协议版本" + } + }, + "required": [ + "app_name", + "app_version", + "protocol_version" + ] + }, + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "信息" + }, + { + "name": "group_poke", + "aliases": [], + "summary": "群拍一拍", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "like_qzone", + "aliases": [], + "summary": "给一条说说点赞(QQ 空间)", + "readOnly": false, + "params": [ + { + "name": "tid", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + }, + "desc": "说说 tid" + }, + { + "name": "target_uin", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "说说所属 QQ 号,省略则为机器人自己" + }, + { + "name": "abstime", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "desc": "说说发表时间(unix 秒),传真实值更可靠", + "default": 0 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "tid": { + "type": "string", + "minLength": 1, + "description": "说说 tid" + }, + "target_uin": { + "type": "integer", + "minimum": 1, + "description": "说说所属 QQ 号,省略则为机器人自己" + }, + "abstime": { + "type": "integer", + "minimum": 0, + "description": "说说发表时间(unix 秒),传真实值更可靠", + "default": 0 + } + }, + "required": [ + "tid" + ], + "additionalProperties": true + }, + "category": "空间" + }, + { + "name": "list_filesets", + "aliases": [], + "summary": "列出当前账号的所有闪传文件集", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "mark_group_msg_as_read", + "aliases": [], + "summary": "标记群消息已读", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "mark_msg_as_read", + "aliases": [], + "summary": "标记消息已读(群聊/私聊自动路由)", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "target_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "target_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "mark_private_msg_as_read", + "aliases": [], + "summary": "标记私聊消息已读", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "user_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "user_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "modify_custom_face", + "aliases": [], + "summary": "修改收藏表情备注", + "readOnly": false, + "params": [ + { + "name": "emoji_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "desc", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string", + "minLength": 1 + }, + "desc": { + "type": "string", + "default": "" + } + }, + "required": [ + "emoji_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "move_custom_face_to_front", + "aliases": [], + "summary": "收藏表情移到最前", + "readOnly": false, + "params": [ + { + "name": "emoji_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "emoji_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "move_group_file", + "aliases": [], + "summary": "移动群文件", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "file_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "parent_directory", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "target_directory", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "file_id": { + "type": "string", + "minLength": 1 + }, + "parent_directory": { + "type": "string", + "minLength": 1 + }, + "target_directory": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "file_id", + "parent_directory", + "target_directory" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "nc_get_packet_status", + "aliases": [], + "summary": "获取 packet 状态(占位)", + "readOnly": true, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "nc_get_user_status", + "aliases": [], + "summary": "获取用户在线/扩展状态", + "readOnly": true, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "ocr_image", + "aliases": [ + ".ocr_image" + ], + "summary": "OCR 图片(服务端,需图片 URL 或已缓存的图片 file_id)", + "readOnly": true, + "params": [ + { + "name": "image", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "image": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "image" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "rename_flash_file", + "aliases": [], + "summary": "重命名闪传文件", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "new_name", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + }, + "new_name": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "fileset_id", + "new_name" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "rename_group_file", + "aliases": [], + "summary": "重命名群文件", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "file_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "current_parent_directory", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "/" + }, + { + "name": "new_name", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "file_id": { + "type": "string", + "minLength": 1 + }, + "current_parent_directory": { + "type": "string", + "default": "/" + }, + "new_name": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "file_id", + "new_name" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "rename_group_file_folder", + "aliases": [], + "summary": "重命名群文件夹", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "folder_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "new_folder_name", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "name", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "folder_id": { + "type": "string", + "minLength": 1 + }, + "new_folder_name": { + "type": "string", + "default": "" + }, + "name": { + "type": "string", + "default": "" + } + }, + "required": [ + "group_id", + "folder_id" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "request_decrypt_key", + "aliases": [], + "summary": "请求数据库解密密钥", + "readOnly": false, + "params": [ + { + "name": "db_path", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "db_path": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "db_path" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_ark_share", + "aliases": [], + "summary": "分享用户/群 Ark 卡片(NapCat 标准名)", + "readOnly": true, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "phone_number", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "group_id": { + "type": "integer", + "minimum": 1 + }, + "phone_number": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_flash_msg", + "aliases": [], + "summary": "发送闪传消息(私聊或群聊,引用 fileset_id 让对端下载)", + "returns": "{ message_id }", + "readOnly": false, + "params": [ + { + "name": "fileset_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "user_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "fileset_id": { + "type": "string", + "minLength": 1 + }, + "user_id": { + "type": "integer", + "minimum": 1 + }, + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "fileset_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_forward_msg", + "aliases": [], + "summary": "发送合并转发(按 message_type/群号自动路由)", + "returns": "{ message_id, res_id, forward_id }", + "readOnly": false, + "params": [ + { + "name": "messages", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "message", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "messages": { + "description": "OneBot message: string | segment[] | object" + }, + "message": { + "description": "OneBot message: string | segment[] | object" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_group_ai_record", + "aliases": [], + "summary": "发送 AI 语音到群", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "character", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "text", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "chat_type", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 1 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "character": { + "type": "string", + "minLength": 1 + }, + "text": { + "type": "string", + "minLength": 1 + }, + "chat_type": { + "type": "integer", + "minimum": 0, + "default": 1 + } + }, + "required": [ + "group_id", + "character", + "text" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_group_ark_share", + "aliases": [], + "summary": "分享群 Ark 卡片(NapCat 标准名)", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_group_forward_msg", + "aliases": [], + "summary": "发送群合并转发", + "returns": "{ message_id, res_id, forward_id }", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "messages", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "message", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "messages": { + "description": "OneBot message: string | segment[] | object" + }, + "message": { + "description": "OneBot message: string | segment[] | object" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_group_msg", + "aliases": [], + "summary": "发送群消息", + "returns": "{ message_id: number }", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "message", + "type": "message", + "required": true, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "auto_escape", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "message": { + "description": "OneBot message: string | segment[] | object" + }, + "auto_escape": { + "type": "boolean", + "default": false + } + }, + "required": [ + "group_id", + "message" + ], + "additionalProperties": true + }, + "category": "消息" + }, + { + "name": "send_like", + "aliases": [], + "summary": "点赞", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "times", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 1 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "times": { + "type": "integer", + "minimum": 0, + "default": 1 + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_msg", + "aliases": [], + "summary": "发送消息(按 message_type/群号 自动路由群聊或私聊)", + "returns": "{ message_id: number }", + "readOnly": false, + "params": [ + { + "name": "message", + "type": "message", + "required": true, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "message_type", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "user_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "auto_escape", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message": { + "description": "OneBot message: string | segment[] | object" + }, + "message_type": { + "type": "string" + }, + "group_id": { + "type": "integer", + "minimum": 1 + }, + "user_id": { + "type": "integer", + "minimum": 1 + }, + "auto_escape": { + "type": "boolean", + "default": false + } + }, + "required": [ + "message" + ], + "additionalProperties": true + }, + "category": "消息" + }, + { + "name": "send_packet", + "aliases": [ + ".send_packet" + ], + "summary": "发送原始 SSO 包(cmd + hex data)", + "readOnly": false, + "params": [ + { + "name": "cmd", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "data", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "rsp", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "cmd": { + "type": "string", + "minLength": 1 + }, + "data": { + "type": "string", + "default": "" + }, + "rsp": { + "type": "boolean", + "default": true + } + }, + "required": [ + "cmd" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_poke", + "aliases": [], + "summary": "拍一拍(群聊/私聊自动路由)", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_private_forward_msg", + "aliases": [], + "summary": "发送私聊合并转发", + "returns": "{ message_id, res_id, forward_id }", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "messages", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "message", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "messages": { + "description": "OneBot message: string | segment[] | object" + }, + "message": { + "description": "OneBot message: string | segment[] | object" + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "send_private_msg", + "aliases": [], + "summary": "发送私聊消息", + "returns": "{ message_id: number }", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "message", + "type": "message", + "required": true, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "auto_escape", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "message": { + "description": "OneBot message: string | segment[] | object" + }, + "auto_escape": { + "type": "boolean", + "default": false + } + }, + "required": [ + "user_id", + "message" + ], + "additionalProperties": true + }, + "category": "消息" + }, + { + "name": "send_qzone_msg", + "aliases": [], + "summary": "发表一条纯文字说说(QQ 空间)", + "readOnly": false, + "params": [ + { + "name": "content", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + }, + "desc": "说说正文" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "minLength": 1, + "description": "说说正文" + } + }, + "required": [ + "content" + ], + "additionalProperties": true + }, + "category": "空间" + }, + { + "name": "set_diy_online_status", + "aliases": [], + "summary": "设置自定义在线状态", + "readOnly": false, + "params": [ + { + "name": "face_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "face_type", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 1 + }, + { + "name": "wording", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "face_id": { + "type": "integer", + "minimum": 1 + }, + "face_type": { + "type": "integer", + "minimum": 0, + "default": 1 + }, + "wording": { + "type": "string", + "default": "" + } + }, + "required": [ + "face_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_doubt_friends_add_request", + "aliases": [], + "summary": "处理可疑好友申请", + "readOnly": false, + "params": [ + { + "name": "flag", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "approve", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "flag": { + "type": "string", + "minLength": 1 + }, + "approve": { + "type": "boolean", + "default": true + } + }, + "required": [ + "flag" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_essence_msg", + "aliases": [], + "summary": "设置精华消息", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + "required": [ + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_friend_add_request", + "aliases": [], + "summary": "处理好友添加请求", + "readOnly": false, + "params": [ + { + "name": "flag", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "approve", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "flag": { + "type": "string", + "minLength": 1 + }, + "approve": { + "type": "boolean", + "default": true + } + }, + "required": [ + "flag" + ], + "additionalProperties": true + }, + "category": "请求" + }, + { + "name": "set_friend_remark", + "aliases": [], + "summary": "设置好友备注", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "remark", + "type": "string", + "required": true, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "remark": { + "type": "string" + } + }, + "required": [ + "user_id", + "remark" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_group_add_option", + "aliases": [], + "summary": "设置加群选项", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "add_type", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 0 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "add_type": { + "type": "integer", + "minimum": 0, + "default": 0 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_add_request", + "aliases": [], + "summary": "处理加群请求", + "readOnly": false, + "params": [ + { + "name": "flag", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "sub_type", + "type": "raw", + "required": false, + "schema": {} + }, + { + "name": "type", + "type": "raw", + "required": false, + "schema": {} + }, + { + "name": "approve", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + }, + { + "name": "reason", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "flag": { + "type": "string", + "minLength": 1 + }, + "sub_type": {}, + "type": {}, + "approve": { + "type": "boolean", + "default": true + }, + "reason": { + "type": "string", + "default": "" + } + }, + "required": [ + "flag" + ], + "additionalProperties": true + }, + "category": "请求" + }, + { + "name": "set_group_admin", + "aliases": [], + "summary": "设置/取消管理员", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + }, + { + "name": "enable", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + }, + "enable": { + "type": "boolean", + "default": true + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_album_media_like", + "aliases": [], + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "album_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "batch_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "lloc", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "album_id": { + "type": "string", + "minLength": 1 + }, + "batch_id": { + "type": "string", + "minLength": 1 + }, + "lloc": { + "type": "string" + } + }, + "required": [ + "group_id", + "album_id", + "batch_id" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "set_group_anonymous", + "aliases": [], + "summary": "匿名开关(未实现,返回 ok)", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_anonymous_ban", + "aliases": [], + "summary": "匿名禁言(未实现,返回 ok)", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_ban", + "aliases": [], + "summary": "禁言群成员(duration=0 解除)", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + }, + { + "name": "duration", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 1800 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + }, + "duration": { + "type": "integer", + "minimum": 0, + "default": 1800 + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_card", + "aliases": [], + "summary": "设置群名片(空字符串清除)", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + }, + { + "name": "card", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + }, + "card": { + "type": "string", + "default": "" + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_kick", + "aliases": [], + "summary": "踢出群成员", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + }, + { + "name": "reject_add_request", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + }, + "reject_add_request": { + "type": "boolean", + "default": false + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_kick_members", + "aliases": [], + "summary": "批量踢出群成员", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint[]", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer", + "minimum": 1 + }, + "minItems": 1 + } + }, + { + "name": "reject_add_request", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": false + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "array", + "items": { + "type": "integer", + "minimum": 1 + }, + "minItems": 1 + }, + "reject_add_request": { + "type": "boolean", + "default": false + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_leave", + "aliases": [], + "summary": "退群", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_name", + "aliases": [], + "summary": "设置群名", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "group_name", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "group_name": { + "type": "string", + "default": "" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_portrait", + "aliases": [], + "summary": "设置群头像", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "file", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "file": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "file" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_reaction", + "aliases": [], + "summary": "群聊表情回应", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "code", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "is_set", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1 + }, + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "code": { + "type": "string", + "minLength": 1 + }, + "is_set": { + "type": "boolean", + "default": true + } + }, + "required": [ + "message_id", + "code" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_group_remark", + "aliases": [], + "summary": "设置群备注", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "remark", + "type": "string", + "required": true, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1 + }, + "remark": { + "type": "string" + } + }, + "required": [ + "group_id", + "remark" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_group_robot_add_option", + "aliases": [], + "summary": "设置群机器人加群选项", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "robot_member_switch", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + } + }, + { + "name": "robot_member_examine", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "robot_member_switch": { + "type": "integer", + "minimum": 0 + }, + "robot_member_examine": { + "type": "integer", + "minimum": 0 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_group_search", + "aliases": [], + "summary": "允许群被搜索", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_sign", + "aliases": [ + "send_group_sign" + ], + "summary": "群签到", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_group_special_title", + "aliases": [], + "summary": "设置群头衔", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "QQ 号" + }, + { + "name": "special_title", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "user_id": { + "type": "integer", + "minimum": 1, + "description": "QQ 号" + }, + "special_title": { + "type": "string", + "default": "" + } + }, + "required": [ + "group_id", + "user_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_group_todo", + "aliases": [], + "summary": "设置群待办", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + "required": [ + "group_id", + "message_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_group_whole_ban", + "aliases": [], + "summary": "全员禁言开关", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "enable", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "enable": { + "type": "boolean", + "default": true + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "群管理" + }, + { + "name": "set_input_status", + "aliases": [], + "summary": "设置输入状态", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "event_type", + "type": "int", + "required": false, + "schema": { + "type": "integer" + }, + "default": 0 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "event_type": { + "type": "integer", + "default": 0 + } + }, + "required": [ + "user_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_msg_emoji_like", + "aliases": [], + "summary": "设置消息表情回应", + "readOnly": false, + "params": [ + { + "name": "message_id", + "type": "messageId", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "emoji_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "set", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "message_id": { + "type": "integer", + "not": { + "const": 0 + } + }, + "emoji_id": { + "type": "string", + "minLength": 1 + }, + "set": { + "type": "boolean", + "default": true + } + }, + "required": [ + "message_id", + "emoji_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_online_status", + "aliases": [], + "summary": "设置在线状态", + "readOnly": false, + "params": [ + { + "name": "status", + "type": "int", + "required": true, + "schema": { + "type": "integer", + "not": { + "const": 0 + } + } + }, + { + "name": "ext_status", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 0 + }, + { + "name": "battery_status", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "default": 100 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "status": { + "type": "integer", + "not": { + "const": 0 + } + }, + "ext_status": { + "type": "integer", + "minimum": 0, + "default": 0 + }, + "battery_status": { + "type": "integer", + "minimum": 0, + "default": 100 + } + }, + "required": [ + "status" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_qq_avatar", + "aliases": [], + "summary": "设置 QQ 头像", + "readOnly": false, + "params": [ + { + "name": "file", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "file" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_qq_profile", + "aliases": [], + "summary": "设置 QQ 资料", + "readOnly": false, + "params": [ + { + "name": "nickname", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "personal_note", + "type": "string", + "required": false, + "schema": { + "type": "string" + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "nickname": { + "type": "string" + }, + "personal_note": { + "type": "string" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_restart", + "aliases": [], + "summary": "重启(不支持)", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "set_self_longnick", + "aliases": [], + "summary": "设置个性签名(longNick/long_nick,严格 string)", + "readOnly": false, + "params": [ + { + "name": "longNick", + "type": "raw", + "required": false, + "schema": {} + }, + { + "name": "long_nick", + "type": "raw", + "required": false, + "schema": {} + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "longNick": {}, + "long_nick": {} + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "share_group_ex", + "aliases": [], + "summary": "分享群 Ark 卡片", + "readOnly": true, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "group_id" + ], + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "share_peer", + "aliases": [], + "summary": "分享用户/群 Ark 卡片", + "readOnly": true, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "phone_number", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "group_id": { + "type": "integer", + "minimum": 1 + }, + "phone_number": { + "type": "string", + "default": "" + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "trans_group_file", + "aliases": [], + "summary": "转存群文件(未实现)", + "readOnly": false, + "params": [], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "translate_en2zh", + "aliases": [], + "summary": "英译中", + "returns": "{ words }", + "readOnly": true, + "params": [ + { + "name": "words", + "type": "raw", + "required": false, + "schema": {} + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "words": {} + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "unlike_qzone", + "aliases": [], + "summary": "取消对一条说说的点赞(QQ 空间;取消赞端点待真机核实)", + "readOnly": false, + "params": [ + { + "name": "tid", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + }, + "desc": "说说 tid" + }, + { + "name": "target_uin", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "说说所属 QQ 号,省略则为机器人自己" + }, + { + "name": "abstime", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "desc": "说说发表时间(unix 秒),传真实值更可靠", + "default": 0 + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "tid": { + "type": "string", + "minLength": 1, + "description": "说说 tid" + }, + "target_uin": { + "type": "integer", + "minimum": 1, + "description": "说说所属 QQ 号,省略则为机器人自己" + }, + "abstime": { + "type": "integer", + "minimum": 0, + "description": "说说发表时间(unix 秒),传真实值更可靠", + "default": 0 + } + }, + "required": [ + "tid" + ], + "additionalProperties": true + }, + "category": "空间" + }, + { + "name": "upload_forward_msg", + "aliases": [], + "summary": "上传转发消息", + "readOnly": false, + "params": [ + { + "name": "messages", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "message", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "messages": { + "description": "OneBot message: string | segment[] | object" + }, + "message": { + "description": "OneBot message: string | segment[] | object" + }, + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "upload_foward_msg", + "aliases": [], + "summary": "上传转发消息(别名拼写)", + "readOnly": false, + "params": [ + { + "name": "messages", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "message", + "type": "message", + "required": false, + "schema": { + "description": "OneBot message: string | segment[] | object" + } + }, + { + "name": "group_id", + "type": "uint", + "required": false, + "schema": { + "type": "integer", + "minimum": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "messages": { + "description": "OneBot message: string | segment[] | object" + }, + "message": { + "description": "OneBot message: string | segment[] | object" + }, + "group_id": { + "type": "integer", + "minimum": 1 + } + }, + "additionalProperties": true + }, + "category": "扩展" + }, + { + "name": "upload_group_file", + "aliases": [], + "summary": "上传群文件", + "returns": "{ file_id: string }", + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "file", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "name", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "folder", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "folder_id", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "upload_file", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "file": { + "type": "string", + "minLength": 1 + }, + "name": { + "type": "string", + "default": "" + }, + "folder": { + "type": "string", + "default": "" + }, + "folder_id": { + "type": "string", + "default": "" + }, + "upload_file": { + "type": "boolean", + "default": true + } + }, + "required": [ + "group_id", + "file" + ], + "additionalProperties": true + }, + "category": "群文件" + }, + { + "name": "upload_image_to_qun_album", + "aliases": [], + "readOnly": false, + "params": [ + { + "name": "group_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "desc": "群号" + }, + { + "name": "album_id", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "album_name", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "file", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "group_id": { + "type": "integer", + "minimum": 1, + "description": "群号" + }, + "album_id": { + "type": "string", + "minLength": 1 + }, + "album_name": { + "type": "string", + "minLength": 1 + }, + "file": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "group_id", + "album_id", + "album_name", + "file" + ], + "additionalProperties": true + }, + "category": "群相册" + }, + { + "name": "upload_private_file", + "aliases": [], + "summary": "上传私聊文件", + "returns": "{ file_id: string }", + "readOnly": false, + "params": [ + { + "name": "user_id", + "type": "uint", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "file", + "type": "string", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "name", + "type": "string", + "required": false, + "schema": { + "type": "string" + }, + "default": "" + }, + { + "name": "upload_file", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "default": true + } + ], + "invariants": [], + "inputSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "minimum": 1 + }, + "file": { + "type": "string", + "minLength": 1 + }, + "name": { + "type": "string", + "default": "" + }, + "upload_file": { + "type": "boolean", + "default": true + } + }, + "required": [ + "user_id", + "file" + ], + "additionalProperties": true + }, + "category": "群文件" + } + ], + "categories": [ + { + "category": "信息", + "count": 5 + }, + { + "category": "消息", + "count": 5 + }, + { + "category": "好友", + "count": 3 + }, + { + "category": "群信息", + "count": 6 + }, + { + "category": "群管理", + "count": 14 + }, + { + "category": "群文件", + "count": 12 + }, + { + "category": "请求", + "count": 2 + }, + { + "category": "扩展", + "count": 109 + }, + { + "category": "群相册", + "count": 8 + }, + { + "category": "空间", + "count": 7 + } + ] +} diff --git a/packages/mcp/src/generated/catalog.ts b/packages/mcp/src/generated/catalog.ts index 0f9885a0..15a92cc1 100644 --- a/packages/mcp/src/generated/catalog.ts +++ b/packages/mcp/src/generated/catalog.ts @@ -2547,13 +2547,9 @@ export const ACTIONS: CatalogAction[] = [ }, { "name": "busid", - "type": "int", + "type": "raw", "required": false, - "schema": { - "type": "integer", - "minimum": 0 - }, - "default": 102 + "schema": {} } ], "invariants": [], @@ -2569,11 +2565,7 @@ export const ACTIONS: CatalogAction[] = [ "type": "string", "minLength": 1 }, - "busid": { - "type": "integer", - "minimum": 0, - "default": 102 - } + "busid": {} }, "required": [ "group_id", @@ -2716,6 +2708,34 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_info", "aliases": [], "summary": "获取群信息", + "returns": "群信息对象。", + "returnsSchema": { + "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": [ { @@ -2824,6 +2844,72 @@ export const ACTIONS: CatalogAction[] = [ "name": "get_group_member_info", "aliases": [], "summary": "获取群成员信息", + "returns": "群成员信息对象。", + "returnsSchema": { + "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": [ { @@ -3153,6 +3239,24 @@ export const ACTIONS: CatalogAction[] = [ { "name": "get_login_info", "aliases": [], + "returns": "当前登录账号的 QQ 号与昵称。", + "returnsSchema": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "description": "登录 QQ 号" + }, + "nickname": { + "type": "string", + "description": "登录昵称" + } + }, + "required": [ + "user_id", + "nickname" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -3237,7 +3341,7 @@ export const ACTIONS: CatalogAction[] = [ { "name": "user_id", "type": "uint", - "required": true, + "required": false, "schema": { "type": "integer", "minimum": 1 @@ -3255,11 +3359,11 @@ export const ACTIONS: CatalogAction[] = [ { "name": "file_hash", "type": "string", - "required": true, + "required": false, "schema": { - "type": "string", - "minLength": 1 - } + "type": "string" + }, + "default": "" } ], "invariants": [], @@ -3276,13 +3380,11 @@ export const ACTIONS: CatalogAction[] = [ }, "file_hash": { "type": "string", - "minLength": 1 + "default": "" } }, "required": [ - "user_id", - "file_id", - "file_hash" + "file_id" ], "additionalProperties": true }, @@ -3639,6 +3741,24 @@ export const ACTIONS: CatalogAction[] = [ { "name": "get_status", "aliases": [], + "returns": "运行状态。`online`/`good` 均表示账号是否在线。", + "returnsSchema": { + "type": "object", + "properties": { + "online": { + "type": "boolean", + "description": "是否在线" + }, + "good": { + "type": "boolean", + "description": "状态是否正常(与 online 一致)" + } + }, + "required": [ + "online", + "good" + ] + }, "readOnly": true, "params": [], "invariants": [], @@ -3700,6 +3820,29 @@ export const ACTIONS: CatalogAction[] = [ { "name": "get_version_info", "aliases": [], + "returns": "实现与协议版本信息。", + "returnsSchema": { + "type": "object", + "properties": { + "app_name": { + "type": "string", + "description": "实现名称(SnowLuma)" + }, + "app_version": { + "type": "string", + "description": "实现版本" + }, + "protocol_version": { + "type": "string", + "description": "OneBot 协议版本" + } + }, + "required": [ + "app_name", + "app_version", + "protocol_version" + ] + }, "readOnly": true, "params": [], "invariants": [], diff --git a/packages/mcp/src/types.ts b/packages/mcp/src/types.ts index 65c176cb..96b2c9da 100644 --- a/packages/mcp/src/types.ts +++ b/packages/mcp/src/types.ts @@ -21,6 +21,8 @@ export interface CatalogAction { category?: string; summary?: string; returns?: string; + /** JSON Schema for the action's `data` payload (absent when undocumented). */ + returnsSchema?: Record; /** True only for pure data-fetch actions (no side effects). Drives the * read/write tool routing: read-only → query_action, else → invoke_action. * Classified at the source spec by what the action's `run` actually does. */