// GENERATED by scripts/gen-catalog.test.ts — do not edit. Run `pnpm gen`. /* eslint-disable */ import type { CatalogAction, CatalogCategory } from '../types.js'; export const ACTIONS: CatalogAction[] = [ { "name": "_del_group_notice", "aliases": [], "summary": "删除群公告(fid 或 notice_id 二选一)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除群公告(fid 或 notice_id 二选一)", "params": { "group_id": 20001, "notice_id": "" }, "notes": "notice_id 来自 _get_group_notice;删除需要管理权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "fid": { "type": "string" }, "notice_id": { "type": "string" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "_get_friend_dress", "aliases": [], "summary": "获取指定 QQ 号正在使用的个性装扮(挂件/名片/来电/输入状态等)", "returns": "装扮信息;目标未使用任何可查询装扮时 items 为空数组。网络失败、未登录态/风控、页面改版、返回账号与请求不一致时返回失败并附具体原因", "returnsSchema": { "type": "object", "properties": { "target_uin": { "type": "string" }, "is_svip": { "type": "boolean" }, "avatar_url": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "properties": { "app_id": { "type": "integer" }, "kind": { "type": "string" }, "item_id": { "type": "integer" }, "name": { "type": "string" }, "preview_url": { "type": "string" }, "video_url": { "type": "string" }, "price": { "type": "number" } }, "required": [ "app_id", "kind", "item_id", "name", "preview_url", "video_url", "price" ] } } }, "required": [ "target_uin", "is_svip", "avatar_url", "items" ] }, "examples": [ { "summary": "获取指定 QQ 号正在使用的个性装扮(挂件/名片/来电/输入状态等)", "params": { "user_id": 10001 }, "notes": "替换为需要查询的 QQ 号。" } ], "readOnly": true, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "目标 QQ 号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "description": "目标 QQ 号", "x-role": "user_id" } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "_get_group_notice", "aliases": [], "summary": "获取群公告", "returns": "普通公告与新成员公告的合并数组;send_to_new_members 标识后者;图片含 id、url、宽高", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "notice_id": { "type": "string" }, "sender_id": { "type": "number" }, "publish_time": { "type": "number" }, "message": { "type": "object", "properties": { "text": { "type": "string" }, "image": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "url": { "type": "string" }, "height": { "type": "number" }, "width": { "type": "number" } }, "required": [ "id", "url", "height", "width" ] } }, "images": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "url": { "type": "string" }, "height": { "type": "number" }, "width": { "type": "number" } }, "required": [ "id", "url", "height", "width" ] }, "description": "与 image 相同的图片列表,保留两个兼容字段" } }, "required": [ "text", "image", "images" ] }, "settings": { "description": "服务端公告设置,原样透传,可为 null" }, "read_num": { "type": "number" }, "type": { "type": "number" }, "pinned": { "type": "number" }, "send_to_new_members": { "type": "boolean" } }, "required": [ "notice_id", "sender_id", "publish_time", "message", "settings", "read_num", "type", "pinned", "send_to_new_members" ] } }, "examples": [ { "summary": "获取群公告", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "_get_model_show", "aliases": [], "summary": "获取机型展示(兼容 mock)", "returns": "数组,每项含 variants(回显请求的机型名与 need_pay 标记)。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "variants": { "type": "object", "properties": { "model_show": { "type": "string", "description": "机型展示名(回显请求的 model,缺省 snowluma)" }, "need_pay": { "type": "boolean", "description": "是否需付费(恒 false)" } }, "required": [ "model_show", "need_pay" ] } }, "required": [ "variants" ] } }, "examples": [ { "summary": "获取机型展示(兼容 mock)", "params": { "model": "示例机型" }, "notes": "兼容占位接口,仅将传入的 model(或默认值)放进展示结构,不查询设备机型。" } ], "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": "标记全部已读", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "标记全部已读", "params": {}, "notes": "会将当前账号的会话标记为已读。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "_send_group_notice", "aliases": [], "summary": "发送群公告(支持置顶、弹窗、新成员、群昵称引导与确认)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "发送群公告(支持置顶、弹窗、新成员、群昵称引导与确认)", "params": { "group_id": 20001, "content": "欢迎参加本周讨论", "type": 1, "pinned": 0 }, "notes": "需要群公告管理权限;普通公告 type=1,新成员公告 type=20。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "content", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "公告正文" }, { "name": "image", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "role": "image", "desc": "可选公告图片(本地路径、URL 或 base64)" }, { "name": "pinned", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0, "maximum": 1 }, "default": 0, "desc": "是否置顶:1=置顶,0=不置顶" }, { "name": "type", "type": "int", "required": false, "schema": { "type": "integer" }, "desc": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members" }, { "name": "send_to_new_members", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "是否在成员新加入群时发送(与 type=20 等价)" }, { "name": "is_show_edit_card", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0, "maximum": 1 }, "default": 1, "desc": "是否引导群成员修改群昵称:1=是,0=否" }, { "name": "tip_window_type", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0, "maximum": 1 }, "default": 1, "desc": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)" }, { "name": "confirm_required", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0, "maximum": 1 }, "default": 1, "desc": "是否需要群成员确认收到:1=是,0=否" } ], "invariants": [ "type must be 1 (regular) or 20 (new members)", "send_to_new_members conflicts with type" ], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "content": { "type": "string", "minLength": 1, "description": "公告正文" }, "image": { "type": "string", "description": "可选公告图片(本地路径、URL 或 base64)", "default": "", "x-role": "image" }, "pinned": { "type": "integer", "minimum": 0, "maximum": 1, "description": "是否置顶:1=置顶,0=不置顶", "default": 0 }, "type": { "type": "integer", "description": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members" }, "send_to_new_members": { "type": "boolean", "description": "是否在成员新加入群时发送(与 type=20 等价)" }, "is_show_edit_card": { "type": "integer", "minimum": 0, "maximum": 1, "description": "是否引导群成员修改群昵称:1=是,0=否", "default": 1 }, "tip_window_type": { "type": "integer", "minimum": 0, "maximum": 1, "description": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)", "default": 1 }, "confirm_required": { "type": "integer", "minimum": 0, "maximum": 1, "description": "是否需要群成员确认收到:1=是,0=否", "default": 1 } }, "required": [ "group_id", "content" ], "additionalProperties": true }, "category": "扩展" }, { "name": "_set_model_show", "aliases": [], "summary": "设置机型展示(占位)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置机型展示(占位)", "params": {}, "notes": "兼容占位接口,当前返回成功但不修改机型展示。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": ".get_word_slices", "aliases": [], "summary": "分词(未实现)", "returnsSchema": { "not": {}, "description": "当前始终返回失败,没有成功 data;失败响应 data 为 null,原因见 wording" }, "examples": [ { "summary": "分词(未实现)", "params": {}, "notes": "当前未实现,调用返回失败;不要将其当作可用能力。" } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "add_custom_face", "aliases": [], "summary": "添加收藏表情", "returnsSchema": { "type": "object", "properties": { "emoji_id": { "type": "string" } }, "required": [ "emoji_id" ] }, "examples": [ { "summary": "添加收藏表情", "params": { "file": "file:///path/to/emoji.png" }, "notes": "示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。" } ], "readOnly": false, "params": [ { "name": "file", "type": "string", "required": true, "role": "image", "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file": { "type": "string", "minLength": 1, "x-role": "image" } }, "required": [ "file" ], "additionalProperties": true }, "category": "扩展" }, { "name": "add_group_tag", "aliases": [], "summary": "向某个群分类添加资料标签", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "向某个群分类添加资料标签", "params": { "group_class": 1, "name": "学习" }, "notes": "替换实际群分类和标签;需要当前账号有管理权限。" } ], "readOnly": false, "params": [ { "name": "group_class", "type": "int", "required": true, "schema": { "type": "integer", "minimum": 0, "maximum": 4294967295 } }, { "name": "name", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_class": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "name": { "type": "string", "minLength": 1 } }, "required": [ "group_class", "name" ], "additionalProperties": true }, "category": "群管理" }, { "name": "bot_exit", "aliases": [], "summary": "退出机器人", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "退出机器人", "params": {}, "notes": "会退出 SnowLuma 进程,仅在明确需要停止服务时调用。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "can_send_image", "aliases": [], "returns": "能力查询结果。", "returnsSchema": { "type": "object", "properties": { "yes": { "type": "boolean", "description": "是否支持发送图片" } }, "required": [ "yes" ] }, "examples": [ { "summary": "基本调用", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "信息" }, { "name": "can_send_record", "aliases": [], "returns": "能力查询结果。", "returnsSchema": { "type": "object", "properties": { "yes": { "type": "boolean", "description": "是否支持发送语音" } }, "required": [ "yes" ] }, "examples": [ { "summary": "基本调用", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "信息" }, { "name": "cancel_group_album_media_like", "aliases": [], "returnsSchema": { "type": "object", "properties": { "id": { "type": [ "string", "null" ] }, "status": { "type": [ "integer", "null" ] } } }, "examples": [ { "summary": "基本调用", "params": { "group_id": 20001, "album_id": "", "batch_id": "1700000000" }, "notes": "album_id 来自 get_group_album_list;lloc 或视频 id、batch_id 来自 get_group_album_media_list。替换群号及对应资源标识。 batch_id 必须是实际批次的十进制字符串。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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": "取消群待办", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "取消群待办", "params": { "group_id": 20001, "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。 必须是该群的消息。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "group_id", "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "check_url_safely", "aliases": [], "summary": "检查链接安全性", "returns": "{ level }:安全等级(占位实现,恒为 1)。", "returnsSchema": { "type": "object", "properties": { "level": { "type": "integer", "description": "安全等级(占位,恒 1)" } }, "required": [ "level" ] }, "examples": [ { "summary": "检查链接安全性", "params": {}, "notes": "兼容占位接口,当前固定返回 level=1,不能用来证明某个链接安全。" } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "clean_cache", "aliases": [], "summary": "清理缓存", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "清理缓存", "params": {}, "notes": "兼容占位接口,当前返回成功但不执行清理。流式临时文件清理请使用 clean_stream_temp_file。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "clean_stream_temp_file", "aliases": [], "summary": "清理流式传输临时文件(仅清理 stream 上传/下载目录)", "returns": "{ message, removed }", "returnsSchema": { "type": "object", "properties": { "message": { "const": "success" }, "removed": { "type": "integer" }, "freed_bytes": { "type": "integer" }, "skipped_active": { "type": "integer" } }, "required": [ "message", "removed", "freed_bytes", "skipped_active" ] }, "examples": [ { "summary": "清理流式传输临时文件(仅清理 stream 上传/下载目录)", "params": {}, "notes": "清理未使用的流式临时文件;不会清理正在传输的项目。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "流式接口" }, { "name": "click_inline_keyboard_button", "aliases": [], "summary": "点击内联键盘按钮", "returnsSchema": { "type": "object", "properties": { "result": { "type": "number", "description": "按钮业务结果码,需单独检查" }, "errMsg": { "type": "string" }, "status": { "const": 0 }, "promptText": { "type": "string" }, "promptType": { "const": 0 }, "promptIcon": { "const": 0 } }, "required": [ "result", "errMsg", "status", "promptText", "promptType", "promptIcon" ] }, "examples": [ { "summary": "点击内联键盘按钮", "params": { "group_id": 20001, "bot_appid": 10001, "msg_seq": 42, "button_id": "", "callback_data": "" }, "notes": "参数必须来自同一条机器人按钮消息;msg_seq 是消息序号,不是 message_id。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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 } }, { "name": "button_id", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "callback_data", "type": "string", "required": false, "schema": { "type": "string" }, "default": "" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "bot_appid": { "type": "integer", "minimum": 1 }, "msg_seq": { "type": "integer", "minimum": 1 }, "button_id": { "type": "string", "minLength": 1 }, "callback_data": { "type": "string", "default": "" } }, "required": [ "group_id", "bot_appid", "msg_seq", "button_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "comment_qzone", "aliases": [], "summary": "评论说说或回复指定评论(普通评论支持带图,楼中楼仅支持文字)", "returnsSchema": { "type": "object", "properties": { "comment_id": { "type": "string", "description": "新评论或新回复的 ID;普通评论未返回 ID 时为空串,楼中楼回复不会用父编号代替" }, "parent_comment_id": { "type": "string", "description": "仅楼中楼回复返回,所属一级评论 ID" }, "parent_comment_uin": { "type": "integer", "description": "仅楼中楼回复返回,所属一级评论作者 QQ 号" } }, "required": [ "comment_id" ] }, "examples": [ { "summary": "评论一条说说(QQ 空间,支持纯文字或带图;传 images 自动上传)", "params": { "tid": "", "target_uin": 10001, "content": "感谢分享" }, "notes": "tid 来自 get_qzone_msg_list;操作需有该说说的访问或管理权限。" }, { "summary": "回复指定一级评论,保留说说所属账号", "params": { "tid": "", "target_uin": 10001, "content": "感谢回复", "comment_id": "0", "comment_uin": 10002 }, "notes": "comment_id 和 comment_uin 分别取 get_qzone_msg_detail 的一级评论 comment_id 和 uin;编号 0 有效。楼中楼仅支持文字。" }, { "summary": "回复楼中楼中的某位评论者", "params": { "tid": "", "target_uin": 10001, "content": "我也这么认为", "comment_id": "0", "comment_uin": 10002, "reply_uin": 10003, "reply_name": "评论者" }, "notes": "comment_id/comment_uin 使用该回复的 parent_comment_id/parent_comment_uin;reply_uin/reply_name 使用该回复的 uin/name,不把二级回复自身的 comment_id 当成父评论编号。" } ], "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, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "说说所属 QQ 号,省略则为机器人自己" }, { "name": "comment_id", "type": "string", "required": false, "schema": { "type": "string", "minLength": 1 }, "desc": "一级父评论 ID,与 comment_uin 同时提供;编号 0 有效,不能传二级回复自身的 ID" }, { "name": "comment_uin", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "一级父评论作者 QQ 号,与 comment_id 同时提供;不是说说所属账号" }, { "name": "reply_uin", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "楼中楼中要回复的用户 QQ 号,与 reply_name 同时提供,需指定父评论" }, { "name": "reply_name", "type": "string", "required": false, "schema": { "type": "string", "minLength": 1 }, "desc": "要回复的用户昵称,来自评论详情的 name;与 reply_uin 同时提供" }, { "name": "images", "type": "string[]", "required": false, "schema": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "desc": "图片数组(可选),支持 file:// http:// base64://;自动上传" } ], "invariants": [ "all or none of: comment_id, comment_uin", "all or none of: reply_uin, reply_name", "reply_uin/reply_name require comment_id/comment_uin", "images are not supported for comment replies", "comment_id, reply_name and reply content must not be blank", "comment_uin and reply_uin must be safe integers" ], "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 号,省略则为机器人自己", "x-role": "user_id" }, "comment_id": { "type": "string", "minLength": 1, "description": "一级父评论 ID,与 comment_uin 同时提供;编号 0 有效,不能传二级回复自身的 ID" }, "comment_uin": { "type": "integer", "minimum": 1, "description": "一级父评论作者 QQ 号,与 comment_id 同时提供;不是说说所属账号", "x-role": "user_id" }, "reply_uin": { "type": "integer", "minimum": 1, "description": "楼中楼中要回复的用户 QQ 号,与 reply_name 同时提供,需指定父评论", "x-role": "user_id" }, "reply_name": { "type": "string", "minLength": 1, "description": "要回复的用户昵称,来自评论详情的 name;与 reply_uin 同时提供" }, "images": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "图片数组(可选),支持 file:// http:// base64://;自动上传" } }, "required": [ "tid", "content" ], "additionalProperties": true }, "category": "空间" }, { "name": "comment_qzone_public_feed", "aliases": [], "summary": "评论推荐动态,支持文本或上游富文本条目", "returns": "上游评论结果,包含新评论,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "评论推荐动态", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "content": "感谢分享" }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "content", "type": "message", "required": true, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "非空文本,或非空上游 RichItem 对象数组;不是 OneBot 消息段" } ], "invariants": [ "content must be non-empty text or a non-empty array of RichItem objects" ], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "content": { "description": "非空文本,或非空上游 RichItem 对象数组;不是 OneBot 消息段" } }, "required": [ "feed", "content" ], "additionalProperties": true }, "category": "空间" }, { "name": "complete_group_todo", "aliases": [], "summary": "完成群待办", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "完成群待办", "params": { "group_id": 20001, "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。 必须是该群的消息。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "group_id", "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "create_collection", "aliases": [], "summary": "创建收藏(未实现)", "returnsSchema": { "not": {}, "description": "当前始终返回失败,没有成功 data;失败响应 data 为 null,原因见 wording" }, "examples": [ { "summary": "创建收藏(未实现)", "params": {}, "notes": "当前未实现,调用返回失败;不要将其当作可用能力。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "create_flash_task", "aliases": [], "summary": "创建闪传任务", "returnsSchema": { "type": "object", "properties": { "fileset_id": { "type": "string" }, "task_id": { "type": "string", "description": "与 fileset_id 相同的兼容字段" } }, "required": [ "fileset_id", "task_id" ] }, "examples": [ { "summary": "创建闪传任务", "params": { "files": [ { "file": "file:///path/to/report.pdf", "name": "报告.pdf" } ], "name": "资料包" }, "notes": "示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。 files 不能为空。" } ], "readOnly": false, "params": [ { "name": "files", "type": "raw", "required": false, "schema": {}, "desc": "路径、{ file, name },或它们的数组" }, { "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": { "description": "路径、{ file, name },或它们的数组" }, "name": { "type": "string" }, "thumb_path": { "type": "string" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "create_group_file_folder", "aliases": [], "summary": "创建群文件夹", "returns": "{ result: { retCode, retMsg }, groupItem: { folderInfo: { folderId, folderName, folderPath, createTime, modifyTime, createUin, modifyUin } } }", "returnsSchema": { "type": "object", "properties": { "result": { "type": "object", "properties": { "retCode": { "const": 0 }, "retMsg": { "const": "success" } }, "required": [ "retCode", "retMsg" ] }, "groupItem": { "type": "object", "properties": { "folderInfo": { "type": "object", "properties": { "folderId": { "type": "string" }, "folderName": { "type": "string" }, "folderPath": { "type": "string" }, "createTime": { "type": "integer" }, "modifyTime": { "type": "integer" }, "createUin": { "type": "integer" }, "modifyUin": { "type": "integer" } }, "required": [ "folderId", "folderName", "folderPath", "createTime", "modifyTime", "createUin", "modifyUin" ] } }, "required": [ "folderInfo" ] } }, "required": [ "result", "groupItem" ] }, "examples": [ { "summary": "创建群文件夹", "params": { "group_id": 20001, "name": "共享资料", "parent_id": "/" }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "name": { "type": "string", "minLength": 1 }, "parent_id": { "type": "string", "default": "/" } }, "required": [ "group_id", "name" ], "additionalProperties": true }, "category": "群文件" }, { "name": "del_group_album_media", "aliases": [], "summary": "删除群相册图片或视频", "returnsSchema": { "type": "object", "properties": { "success": { "const": true } }, "required": [ "success" ] }, "examples": [ { "summary": "删除群相册图片或视频", "params": { "group_id": 20001, "album_id": "", "lloc": "" }, "notes": "album_id 来自 get_group_album_list;lloc 或视频 id、batch_id 来自 get_group_album_media_list。替换群号及对应资源标识。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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 }, "desc": "图片长定位标识,或视频 id" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "album_id": { "type": "string", "minLength": 1 }, "lloc": { "type": "string", "minLength": 1, "description": "图片长定位标识,或视频 id" } }, "required": [ "group_id", "album_id", "lloc" ], "additionalProperties": true }, "category": "群相册" }, { "name": "delete_custom_face", "aliases": [], "summary": "删除收藏表情", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除收藏表情", "params": { "emoji_id": "" }, "notes": "emoji_id 来自 fetch_custom_face_detail。" } ], "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": "移除精华消息", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "移除精华消息", "params": { "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "delete_flash_file", "aliases": [], "summary": "删除闪传文件", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除闪传文件", "params": { "fileset_id": "" }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。" } ], "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": "删除好友", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除好友", "params": { "user_id": 10001, "block": false }, "notes": "会删除指定好友;仅在明确需要删除时调用。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "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 号", "x-role": "user_id" }, "block": { "type": "boolean", "default": false } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "好友" }, { "name": "delete_group_file", "aliases": [], "summary": "删除群文件", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除群文件", "params": { "group_id": 20001, "file_id": "" }, "notes": "替换群文件列表中的实际 file_id;需要对应文件操作权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "file_id", "type": "string", "required": true, "role": "file_id", "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "file_id": { "type": "string", "minLength": 1, "x-role": "file_id" } }, "required": [ "group_id", "file_id" ], "additionalProperties": true }, "category": "群文件" }, { "name": "delete_group_file_folder", "aliases": [], "summary": "删除群文件夹", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除群文件夹", "params": { "group_id": 20001, "folder_id": "" }, "notes": "会删除指定群文件夹,确认资源后调用。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "folder_id": { "type": "string", "minLength": 1 } }, "required": [ "group_id", "folder_id" ], "additionalProperties": true }, "category": "群文件" }, { "name": "delete_group_folder", "aliases": [], "summary": "删除群文件夹", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除群文件夹", "params": { "group_id": 20001, "folder_id": "" }, "notes": "会删除指定群文件夹,确认资源后调用。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "folder_id": { "type": "string", "minLength": 1 } }, "required": [ "group_id", "folder_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "delete_group_tag", "aliases": [], "summary": "从某个群分类移除资料标签", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "从某个群分类移除资料标签", "params": { "group_class": 1, "name": "学习" }, "notes": "替换实际群分类和标签;需要当前账号有管理权限。" } ], "readOnly": false, "params": [ { "name": "group_class", "type": "int", "required": true, "schema": { "type": "integer", "minimum": 0, "maximum": 4294967295 } }, { "name": "name", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_class": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "name": { "type": "string", "minLength": 1 } }, "required": [ "group_class", "name" ], "additionalProperties": true }, "category": "群管理" }, { "name": "delete_msg", "aliases": [], "summary": "撤回消息", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "撤回消息", "params": { "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "消息" }, { "name": "delete_qzone_msg", "aliases": [], "summary": "删除一条说说(QQ 空间,按 tid)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "删除一条说说(QQ 空间,按 tid)", "params": { "tid": "" }, "notes": "tid 来自 get_qzone_msg_list;操作需有该说说的访问或管理权限。" } ], "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": "delete_qzone_public_comment", "aliases": [], "summary": "删除推荐动态的一条评论(需有权限)", "returns": "上游删除结果,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "删除一条评论", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "comment": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 }, "reply_attach_info": "" } }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 comment 可取 get_qzone_public_feed_detail 返回的 feed.feed.cell_comment.comments,或后续评论页;保留完整对象。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "comment", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "详情或评论页返回的完整评论对象,保留 user 等原始字段" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "comment": { "type": "object", "additionalProperties": true, "description": "详情或评论页返回的完整评论对象,保留 user 等原始字段" } }, "required": [ "feed", "comment" ], "additionalProperties": true }, "category": "空间" }, { "name": "delete_qzone_public_reply", "aliases": [], "summary": "删除推荐动态评论下的一条回复(需有权限)", "returns": "上游删除结果,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "删除一条回复", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "comment": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 }, "reply_attach_info": "" }, "reply": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 } } }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 comment 可取 get_qzone_public_feed_detail 返回的 feed.feed.cell_comment.comments,或后续评论页;保留完整对象。 reply 使用该评论下的完整回复对象。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "comment", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, { "name": "reply", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "评论或回复页返回的完整回复对象,保留 user 等原始字段" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "comment": { "type": "object", "additionalProperties": true, "description": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, "reply": { "type": "object", "additionalProperties": true, "description": "评论或回复页返回的完整回复对象,保留 user 等原始字段" } }, "required": [ "feed", "comment", "reply" ], "additionalProperties": true }, "category": "空间" }, { "name": "do_group_album_comment", "aliases": [], "returnsSchema": { "type": "object", "properties": { "id": { "type": "string" }, "user": { "type": "object", "properties": { "uin": { "type": "string" } }, "required": [ "uin" ] }, "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "integer" }, "content": { "type": "string" } }, "required": [ "type", "content" ] } }, "time": { "type": "string", "description": "十进制时间字符串" }, "clientKey": { "type": "string" } }, "required": [ "id", "user", "content", "time", "clientKey" ] }, "examples": [ { "summary": "基本调用", "params": { "group_id": 20001, "album_id": "", "lloc": "", "content": "拍得很好" }, "notes": "album_id 来自 get_group_album_list;lloc 或视频 id、batch_id 来自 get_group_album_media_list。替换群号及对应资源标识。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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 }", "returnsSchema": { "type": "object", "properties": { "file": { "type": "string", "description": "保存到 SnowLuma 服务端的本地文件路径" } }, "required": [ "file" ] }, "examples": [ { "summary": "下载文件(url 或 base64)到 data/downloads", "params": { "base64": "aGVsbG8=", "name": "hello.txt" }, "notes": "保存到 SnowLuma 服务端临时目录,返回服务端路径;不是 MCP 主机下载路径。" } ], "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": "" }, { "name": "headers", "type": "raw", "required": false, "schema": {} } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "url": { "type": "string", "default": "" }, "base64": { "type": "string", "default": "" }, "name": { "type": "string", "default": "" }, "headers": {} }, "additionalProperties": true }, "category": "扩展" }, { "name": "download_file_image_stream", "aliases": [], "summary": "以流式方式下载图片(缓存图片 id / URL / stream 目录本地文件)", "returns": "流式帧:file_info → file_chunk* → file_complete", "returnsSchema": { "oneOf": [ { "type": "object", "properties": { "type": { "const": "stream" }, "data_type": { "const": "file_info" }, "file_name": { "type": "string" }, "file_size": { "type": "integer", "description": "字节数,0 可表示未知" }, "chunk_size": { "type": "integer" } }, "required": [ "type", "data_type", "file_name", "file_size", "chunk_size" ] }, { "type": "object", "properties": { "type": { "const": "stream" }, "data_type": { "const": "file_chunk" }, "index": { "type": "integer" }, "data": { "type": "string", "description": "该分块的 Base64 数据" }, "size": { "type": "integer" }, "progress": { "type": "number", "minimum": 0, "maximum": 100 }, "base64_size": { "type": "integer" } }, "required": [ "type", "data_type", "index", "data", "size", "progress", "base64_size" ] }, { "type": "object", "properties": { "type": { "const": "response" }, "data_type": { "const": "file_complete" }, "file_name": { "type": "string" }, "total_chunks": { "type": "integer" }, "total_bytes": { "type": "integer" }, "message": { "type": "string" } }, "required": [ "type", "data_type", "file_name", "total_chunks", "total_bytes", "message" ] } ], "description": "每个成功流式帧的 data;失败帧另由 status/retcode/wording 与 type=error 表示,不是 MCP 保存文件后的工具结果" }, "examples": [ { "summary": "以流式方式下载图片(缓存图片 id / URL / stream 目录本地文件)", "params": { "file_id": "", "chunk_size": 65536 }, "notes": "file_id 来自当前账号图片消息;经 invoke_action 调用。" } ], "readOnly": false, "params": [ { "name": "file", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "文件路径(限 stream 临时目录)/ http(s) URL", "role": "file" }, { "name": "file_id", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "文件 ID(缓存的图片/语音 id)", "role": "file_id" }, { "name": "chunk_size", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1 }, "desc": "分块大小(字节,默认 64KB)" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file": { "type": "string", "description": "文件路径(限 stream 临时目录)/ http(s) URL", "x-role": "file" }, "file_id": { "type": "string", "description": "文件 ID(缓存的图片/语音 id)", "x-role": "file_id" }, "chunk_size": { "type": "integer", "minimum": 1, "description": "分块大小(字节,默认 64KB)" } }, "additionalProperties": true }, "stream": true, "category": "流式接口" }, { "name": "download_file_record_stream", "aliases": [], "summary": "以流式方式下载语音(缓存语音 id / URL / stream 目录本地文件)", "returns": "流式帧:file_info → file_chunk* → file_complete", "returnsSchema": { "oneOf": [ { "type": "object", "properties": { "type": { "const": "stream" }, "data_type": { "const": "file_info" }, "file_name": { "type": "string" }, "file_size": { "type": "integer", "description": "字节数,0 可表示未知" }, "chunk_size": { "type": "integer" } }, "required": [ "type", "data_type", "file_name", "file_size", "chunk_size" ] }, { "type": "object", "properties": { "type": { "const": "stream" }, "data_type": { "const": "file_chunk" }, "index": { "type": "integer" }, "data": { "type": "string", "description": "该分块的 Base64 数据" }, "size": { "type": "integer" }, "progress": { "type": "number", "minimum": 0, "maximum": 100 }, "base64_size": { "type": "integer" } }, "required": [ "type", "data_type", "index", "data", "size", "progress", "base64_size" ] }, { "type": "object", "properties": { "type": { "const": "response" }, "data_type": { "const": "file_complete" }, "file_name": { "type": "string" }, "total_chunks": { "type": "integer" }, "total_bytes": { "type": "integer" }, "message": { "type": "string" } }, "required": [ "type", "data_type", "file_name", "total_chunks", "total_bytes", "message" ] } ], "description": "每个成功流式帧的 data;失败帧另由 status/retcode/wording 与 type=error 表示,不是 MCP 保存文件后的工具结果" }, "examples": [ { "summary": "以流式方式下载语音(缓存语音 id / URL / stream 目录本地文件)", "params": { "file_id": "", "chunk_size": 65536 }, "notes": "file_id 来自当前账号语音消息;经 invoke_action 调用。" } ], "readOnly": false, "params": [ { "name": "file", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "文件路径(限 stream 临时目录)/ http(s) URL", "role": "file" }, { "name": "file_id", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "文件 ID(缓存的图片/语音 id)", "role": "file_id" }, { "name": "chunk_size", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1 }, "desc": "分块大小(字节,默认 64KB)" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file": { "type": "string", "description": "文件路径(限 stream 临时目录)/ http(s) URL", "x-role": "file" }, "file_id": { "type": "string", "description": "文件 ID(缓存的图片/语音 id)", "x-role": "file_id" }, "chunk_size": { "type": "integer", "minimum": 1, "description": "分块大小(字节,默认 64KB)" } }, "additionalProperties": true }, "stream": true, "category": "流式接口" }, { "name": "download_file_stream", "aliases": [], "summary": "以流式方式下载文件(stream 目录本地文件 / URL / 缓存媒体)", "returns": "流式帧:file_info → file_chunk* → file_complete", "returnsSchema": { "oneOf": [ { "type": "object", "properties": { "type": { "const": "stream" }, "data_type": { "const": "file_info" }, "file_name": { "type": "string" }, "file_size": { "type": "integer", "description": "字节数,0 可表示未知" }, "chunk_size": { "type": "integer" } }, "required": [ "type", "data_type", "file_name", "file_size", "chunk_size" ] }, { "type": "object", "properties": { "type": { "const": "stream" }, "data_type": { "const": "file_chunk" }, "index": { "type": "integer" }, "data": { "type": "string", "description": "该分块的 Base64 数据" }, "size": { "type": "integer" }, "progress": { "type": "number", "minimum": 0, "maximum": 100 }, "base64_size": { "type": "integer" } }, "required": [ "type", "data_type", "index", "data", "size", "progress", "base64_size" ] }, { "type": "object", "properties": { "type": { "const": "response" }, "data_type": { "const": "file_complete" }, "file_name": { "type": "string" }, "total_chunks": { "type": "integer" }, "total_bytes": { "type": "integer" }, "message": { "type": "string" } }, "required": [ "type", "data_type", "file_name", "total_chunks", "total_bytes", "message" ] } ], "description": "每个成功流式帧的 data;失败帧另由 status/retcode/wording 与 type=error 表示,不是 MCP 保存文件后的工具结果" }, "examples": [ { "summary": "以流式方式下载文件(stream 目录本地文件 / URL / 缓存媒体)", "params": { "file": "https://example.com/report.pdf", "chunk_size": 65536 }, "notes": "替换实际公开可访问地址;经 invoke_action 调用,文件保存到 MCP 下载目录。" } ], "readOnly": false, "params": [ { "name": "file", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "文件路径(限 stream 临时目录)/ http(s) URL", "role": "file" }, { "name": "file_id", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "文件 ID(缓存的图片/语音 id)", "role": "file_id" }, { "name": "chunk_size", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1 }, "desc": "分块大小(字节,默认 64KB)" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file": { "type": "string", "description": "文件路径(限 stream 临时目录)/ http(s) URL", "x-role": "file" }, "file_id": { "type": "string", "description": "文件 ID(缓存的图片/语音 id)", "x-role": "file_id" }, "chunk_size": { "type": "integer", "minimum": 1, "description": "分块大小(字节,默认 64KB)" } }, "additionalProperties": true }, "stream": true, "category": "流式接口" }, { "name": "download_fileset", "aliases": [], "summary": "解析闪传文件下载直链(不下载,由调用方实现下载)", "returns": "{ url, file_name, file_size }", "returnsSchema": { "type": "object", "properties": { "url": { "type": "string" }, "file_name": { "type": "string" }, "file_size": { "type": "number" } }, "required": [ "url", "file_name", "file_size" ] }, "examples": [ { "summary": "解析闪传文件下载直链(不下载,由调用方实现下载)", "params": { "fileset_id": "", "file_index": 0 }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。 file_index 从 0 开始。" } ], "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": "获取自定义表情", "returns": "字符串数组:return_type=url 时为图片 URL,return_type=id 时为 emoji_id。", "returnsSchema": { "type": "array", "items": { "type": "string", "description": "图片 URL 或 emoji_id(取决于 return_type)" } }, "examples": [ { "summary": "获取自定义表情", "params": { "count": 10, "return_type": "url" } } ], "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_custom_face_detail", "aliases": [], "summary": "获取自定义表情详情", "returns": "自定义表情详情数组,包含资源标识、图片地址、摘要与描述。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "emoji_id": { "type": "string", "description": "可传给 SnowLuma 表情管理接口的资源标识" }, "resId": { "type": "string", "description": "兼容 NapCat 的资源标识" }, "url": { "type": "string", "description": "表情图片地址" }, "md5": { "type": "string", "description": "表情内容摘要" }, "desc": { "type": "string", "description": "自定义表情描述;未设置时为空字符串" } }, "required": [ "emoji_id", "resId", "url", "md5", "desc" ] } }, "examples": [ { "summary": "获取自定义表情详情", "params": { "count": 10 } } ], "readOnly": true, "params": [ { "name": "count", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "default": 48 } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "count": { "type": "integer", "minimum": 0, "default": 48 } }, "additionalProperties": true }, "category": "扩展" }, { "name": "fetch_emoji_like", "aliases": [], "summary": "获取表情回应用户(NapCat 分页)", "returns": "分页的表情回应用户列表(NapCat 形状),含分页游标 cookie 与首/末页标记。", "returnsSchema": { "type": "object", "properties": { "result": { "type": "integer", "description": "结果码(恒 0)" }, "errMsg": { "type": "string", "description": "错误信息(恒空串)" }, "emojiLikesList": { "type": "array", "description": "回应用户列表", "items": { "type": "object", "properties": { "tinyId": { "type": "string", "description": "用户 QQ 号(字符串)" }, "nickName": { "type": "string", "description": "昵称(恒空串)" }, "headUrl": { "type": "string", "description": "头像 URL(恒空串)" } }, "required": [ "tinyId", "nickName", "headUrl" ] } }, "cookie": { "type": "string", "description": "下一页游标(末页为空串)" }, "isLastPage": { "type": "boolean", "description": "是否末页" }, "isFirstPage": { "type": "boolean", "description": "是否首页" } }, "required": [ "result", "errMsg", "emojiLikesList", "cookie", "isLastPage", "isFirstPage" ] }, "examples": [ { "summary": "获取表情回应用户(NapCat 分页)", "params": { "message_id": -123456, "emojiId": "128077", "count": 10 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。 后续页原样传回上页 cookie。" } ], "readOnly": true, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "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 }, "x-role": "message_id" }, "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_face_entity", "aliases": [], "summary": "按编号查询 QQ 系统表情", "returns": "表情详情;编号不存在时返回 null。", "returnsSchema": { "anyOf": [ { "type": "object", "properties": { "q_sid": { "type": "string", "description": "QQ 表情目录标识(部分 emoji 为 Unicode 表情字符串)" }, "q_des": { "type": "string", "description": "表情描述" }, "em_code": { "type": "string" }, "q_cid": { "type": [ "integer", "null" ] }, "ani_sticker_type": { "type": [ "integer", "null" ] }, "ani_sticker_pack_id": { "type": [ "integer", "null" ] }, "ani_sticker_id": { "type": [ "integer", "null" ] }, "url": { "type": [ "string", "null" ] }, "emoji_name_alias": { "type": "array", "items": { "type": "string" } }, "ani_sticker_width": { "type": [ "integer", "null" ] }, "ani_sticker_height": { "type": [ "integer", "null" ] }, "is_super": { "type": "boolean", "description": "是否使用超级表情格式" } }, "required": [ "q_sid", "q_des", "em_code", "q_cid", "ani_sticker_type", "ani_sticker_pack_id", "ani_sticker_id", "url", "emoji_name_alias", "ani_sticker_width", "ani_sticker_height", "is_super" ] }, { "type": "null" } ] }, "examples": [ { "summary": "按编号查询 QQ 系统表情", "params": { "face_id": 14 } } ], "readOnly": true, "params": [ { "name": "face_id", "type": "int", "required": true, "role": "face_id", "schema": { "type": "integer", "minimum": 0 }, "desc": "QQ 系统表情编号" }, { "name": "refresh", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false, "desc": "是否强制从 QQ 刷新目录" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "face_id": { "type": "integer", "minimum": 0, "description": "QQ 系统表情编号", "x-role": "face_id" }, "refresh": { "type": "boolean", "description": "是否强制从 QQ 刷新目录", "default": false } }, "required": [ "face_id" ], "additionalProperties": true }, "category": "系统表情" }, { "name": "fetch_ptt_text", "aliases": [ "get_ptt_text", "get_record_text" ], "summary": "获取语音转文字结果", "returns": "{ text }:语音识别出的文本。", "returnsSchema": { "type": "object", "properties": { "text": { "type": "string", "description": "语音转写文本" } }, "required": [ "text" ] }, "examples": [ { "summary": "获取语音转文字结果", "params": { "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": true, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "fetch_super_face_id", "aliases": [], "summary": "判断 QQ 系统表情是否使用超级表情格式", "returns": "是否使用超级表情格式。", "returnsSchema": { "type": "object", "properties": { "is_super": { "type": "boolean" } }, "required": [ "is_super" ] }, "examples": [ { "summary": "判断 QQ 系统表情是否使用超级表情格式", "params": { "face_id": 14 } } ], "readOnly": true, "params": [ { "name": "face_id", "type": "int", "required": true, "role": "face_id", "schema": { "type": "integer", "minimum": 0 }, "desc": "QQ 系统表情编号" }, { "name": "refresh", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false, "desc": "是否强制从 QQ 刷新目录" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "face_id": { "type": "integer", "minimum": 0, "description": "QQ 系统表情编号", "x-role": "face_id" }, "refresh": { "type": "boolean", "description": "是否强制从 QQ 刷新目录", "default": false } }, "required": [ "face_id" ], "additionalProperties": true }, "category": "系统表情" }, { "name": "fetch_sys_faces", "aliases": [], "summary": "获取 QQ 系统表情目录", "returns": "按分组返回完整的 QQ 系统表情映射。", "returnsSchema": { "type": "object", "properties": { "packs": { "type": "array", "items": { "type": "object", "properties": { "pack_name": { "type": "string" }, "emojis": { "type": "array", "items": { "type": "object", "properties": { "q_sid": { "type": "string", "description": "QQ 表情目录标识(部分 emoji 为 Unicode 表情字符串)" }, "q_des": { "type": "string", "description": "表情描述" }, "em_code": { "type": "string" }, "q_cid": { "type": [ "integer", "null" ] }, "ani_sticker_type": { "type": [ "integer", "null" ] }, "ani_sticker_pack_id": { "type": [ "integer", "null" ] }, "ani_sticker_id": { "type": [ "integer", "null" ] }, "url": { "type": [ "string", "null" ] }, "emoji_name_alias": { "type": "array", "items": { "type": "string" } }, "ani_sticker_width": { "type": [ "integer", "null" ] }, "ani_sticker_height": { "type": [ "integer", "null" ] }, "is_super": { "type": "boolean", "description": "是否使用超级表情格式" } }, "required": [ "q_sid", "q_des", "em_code", "q_cid", "ani_sticker_type", "ani_sticker_pack_id", "ani_sticker_id", "url", "emoji_name_alias", "ani_sticker_width", "ani_sticker_height", "is_super" ] } } }, "required": [ "pack_name", "emojis" ] } } }, "required": [ "packs" ] }, "examples": [ { "summary": "获取 QQ 系统表情目录", "params": { "refresh": false } } ], "readOnly": true, "params": [ { "name": "refresh", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false, "desc": "是否强制从 QQ 刷新目录" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "refresh": { "type": "boolean", "description": "是否强制从 QQ 刷新目录", "default": false } }, "additionalProperties": true }, "category": "系统表情" }, { "name": "forward_friend_single_msg", "aliases": [], "summary": "转发单条消息给好友", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "转发单条消息给好友", "params": { "message_id": -123456, "user_id": 10001 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } }, { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" }, "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" } }, "required": [ "message_id", "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "forward_group_single_msg", "aliases": [], "summary": "转发单条消息到群", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "转发单条消息到群", "params": { "message_id": -123456, "group_id": 20001 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } }, { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "required": [ "message_id", "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "forward_qzone_public_feed", "aliases": [], "summary": "将推荐动态转发到当前账号空间", "returns": "上游转发结果,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "转发推荐动态到我的空间", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "reason": "分享这条动态" }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 只转发,不同时评论或发送给 QQ 联系人。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "reason", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "转发附言,可为空", "default": "" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "reason": { "type": "string", "description": "转发附言,可为空", "default": "" } }, "required": [ "feed" ], "additionalProperties": true }, "category": "空间" }, { "name": "friend_poke", "aliases": [], "summary": "好友拍一拍", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "好友拍一拍", "params": { "user_id": 10001 }, "notes": "戳一戳指定好友。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "target_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "target_id": { "type": "integer", "minimum": 1, "x-role": "user_id" } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_ai_characters", "aliases": [], "summary": "获取 AI 语音角色", "returns": "按分类分组的 AI 语音角色列表,每组含分类名与角色(id、名称、试听 URL)。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "角色分类名" }, "characters": { "type": "array", "description": "该分类下的角色列表", "items": { "type": "object", "properties": { "character_id": { "type": "string", "description": "角色 ID" }, "character_name": { "type": "string", "description": "角色显示名" }, "preview_url": { "type": "string", "description": "试听音频 URL" } }, "required": [ "character_id", "character_name", "preview_url" ] } } }, "required": [ "type", "characters" ] } }, "examples": [ { "summary": "获取 AI 语音角色", "params": { "group_id": 20001, "chat_type": 1 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "chat_type": { "type": "integer", "minimum": 0, "default": 1 } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_ai_record", "aliases": [], "summary": "生成 AI 语音", "returnsSchema": { "type": "string", "description": "生成的下载或分享 URL 字符串,不是含 url 字段的对象" }, "examples": [ { "summary": "生成 AI 语音", "params": { "group_id": 20001, "character": "", "text": "你好", "chat_type": 1 }, "notes": "character 原样使用 get_ai_characters 的 character_id;send_group_ai_record 会直接发送语音。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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", "returns": "{ clientKey, expireTime, keyIndex }:clientkey 及其过期时间与索引。", "returnsSchema": { "type": "object", "properties": { "clientKey": { "type": "string", "description": "clientkey" }, "expireTime": { "type": "string", "description": "过期时间" }, "keyIndex": { "type": "string", "description": "key 索引" } }, "required": [ "clientKey", "expireTime", "keyIndex" ] }, "examples": [ { "summary": "获取 clientkey", "params": {}, "notes": "返回值可能包含凭据或临时下载密钥,请勿公开或记录到不受控日志。" } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "get_collection_list", "aliases": [], "summary": "获取收藏列表", "returns": "返回收藏条目、是否还有更多数据及底部时间游标。", "returnsSchema": { "type": "object", "properties": { "errCode": { "type": "integer" }, "errMsg": { "type": "string" }, "collectionSearchList": { "type": "object", "properties": { "collectionItemList": { "type": "array", "items": { "type": "object", "properties": { "cid": { "type": "string" }, "type": { "type": "integer" }, "status": { "type": "integer" }, "author": { "type": "object", "properties": { "type": { "type": "integer" }, "numId": { "type": "string" }, "strId": { "type": "string" }, "groupId": { "type": "string" }, "groupName": { "type": "string" }, "uid": { "type": "string" } }, "required": [ "type", "numId", "strId", "groupId", "groupName", "uid" ] }, "bid": { "type": "integer" }, "category": { "type": "integer" }, "createTime": { "type": "string" }, "collectTime": { "type": "string" }, "modifyTime": { "type": "string" }, "sequence": { "type": "string" }, "shareUrl": { "type": "string" }, "customGroupId": { "type": "integer" }, "securityBeat": { "type": "boolean" }, "summary": { "type": "object", "properties": { "textSummary": { "type": [ "object", "null" ] }, "linkSummary": { "type": [ "object", "null" ] }, "gallerySummary": { "type": [ "object", "null" ] }, "audioSummary": { "type": [ "object", "null" ] }, "videoSummary": { "type": [ "object", "null" ] }, "fileSummary": { "type": [ "object", "null" ] }, "locationSummary": { "type": [ "object", "null" ] }, "richMediaSummary": { "type": [ "object", "null" ] } }, "required": [ "textSummary", "linkSummary", "gallerySummary", "audioSummary", "videoSummary", "fileSummary", "locationSummary", "richMediaSummary" ] } }, "required": [ "cid", "type", "status", "author", "bid", "category", "createTime", "collectTime", "modifyTime", "sequence", "shareUrl", "customGroupId", "securityBeat", "summary" ] } }, "hasMore": { "type": "boolean" }, "bottomTimeStamp": { "type": "string" } }, "required": [ "collectionItemList", "hasMore", "bottomTimeStamp" ] } }, "required": [ "errCode", "errMsg", "collectionSearchList" ] }, "examples": [ { "summary": "获取收藏列表", "params": { "category": 0, "count": 20 } } ], "readOnly": true, "params": [ { "name": "category", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "desc": "收藏分类 ID;0 表示全部分类", "default": 0 }, { "name": "count", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1, "maximum": 500 }, "desc": "最多返回的收藏数量", "default": 50 } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "category": { "type": "integer", "minimum": 0, "description": "收藏分类 ID;0 表示全部分类", "default": 0 }, "count": { "type": "integer", "minimum": 1, "maximum": 500, "description": "最多返回的收藏数量", "default": 50 } }, "additionalProperties": true }, "category": "扩展" }, { "name": "get_cookies", "aliases": [], "summary": "获取 Cookies", "returns": "{ cookies }:指定域名的 Cookie 字符串。", "returnsSchema": { "type": "object", "properties": { "cookies": { "type": "string", "description": "该域名的 Cookie 字符串" } }, "required": [ "cookies" ] }, "examples": [ { "summary": "获取 Cookies", "params": { "domain": "qun.qq.com" }, "notes": "返回登录凭据,仅在有明确用途时读取,请勿公开。" } ], "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": "获取凭证", "returns": "{ cookies, token, csrf_token }:Cookie 字符串与 CSRF 令牌(token 与 csrf_token 同值)。", "returnsSchema": { "type": "object", "properties": { "cookies": { "type": "string", "description": "该域名的 Cookie 字符串" }, "token": { "type": "integer", "description": "CSRF 令牌(bkn)" }, "csrf_token": { "type": "integer", "description": "CSRF 令牌(同 token)" } }, "required": [ "cookies", "token", "csrf_token" ] }, "examples": [ { "summary": "获取凭证", "params": { "domain": "qun.qq.com" }, "notes": "返回登录凭据,仅在有明确用途时读取,请勿公开。" } ], "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 令牌", "returns": "{ token }:CSRF 令牌(bkn,数值)。", "returnsSchema": { "type": "object", "properties": { "token": { "type": "integer", "description": "CSRF 令牌(bkn)" } }, "required": [ "token" ] }, "examples": [ { "summary": "获取 CSRF 令牌", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "get_doubt_friends_add_request", "aliases": [], "summary": "获取可疑好友申请", "returns": "可疑好友申请数组,每项含 uid(作为处理用 flag)、昵称、来源、留言与申请时间。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "uid": { "type": "string", "description": "申请人 uid(回传作 set_doubt_friends_add_request 的 flag)" }, "user_id": { "type": "integer", "description": "申请人 QQ 号" }, "nick": { "type": "string", "description": "申请人昵称" }, "source": { "type": "string", "description": "申请来源" }, "reason": { "type": "string", "description": "附加说明" }, "msg": { "type": "string", "description": "验证留言" }, "group_code": { "type": "string", "description": "来源群号,无则为空串" }, "reqTime": { "type": "integer", "description": "申请时间戳" } }, "required": [ "uid", "user_id", "nick", "source", "reason", "msg", "group_code", "reqTime" ] } }, "examples": [ { "summary": "获取可疑好友申请", "params": { "count": 20 } } ], "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": "获取表情回应用户", "returns": "{ emoji_like_list }:回应该表情的用户列表(nick_name 恒为空串)。", "returnsSchema": { "type": "object", "properties": { "emoji_like_list": { "type": "array", "description": "回应用户列表", "items": { "type": "object", "properties": { "user_id": { "type": "string", "description": "用户 QQ 号(字符串)" }, "nick_name": { "type": "string", "description": "昵称(当前实现恒为空串)" } }, "required": [ "user_id", "nick_name" ] } } }, "required": [ "emoji_like_list" ] }, "examples": [ { "summary": "获取表情回应用户", "params": { "message_id": -123456, "emoji_id": "128077" }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": true, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "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 }, "x-role": "message_id" }, "emoji_id": { "type": "string", "minLength": 1 } }, "required": [ "message_id", "emoji_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_essence_msg_list", "aliases": [], "summary": "获取精华消息列表", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "msg_seq": { "type": "integer" }, "msg_random": { "type": "integer" }, "sender_id": { "type": "integer" }, "sender_nick": { "type": "string" }, "sender_time": { "type": "integer" }, "operator_id": { "type": "integer" }, "operator_nick": { "type": "string" }, "operator_time": { "type": "integer" }, "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "消息段类型,例如 text、image、reply" }, "data": { "type": "object", "description": "字段随消息段类型变化,例如 text 段包含 text,reply 段包含 id", "additionalProperties": true } }, "required": [ "type", "data" ] } } }, "required": [ "msg_seq", "msg_random", "sender_id", "sender_nick", "sender_time", "operator_id", "operator_nick", "operator_time", "message_id", "content" ] } }, "examples": [ { "summary": "获取精华消息列表", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_file", "aliases": [], "summary": "获取文件信息(仅图片/语音缓存;群文件请用 get_group_file_url)", "returnsSchema": { "type": "object", "properties": { "file": { "type": "string", "description": "媒体地址;图片无地址时可为原文件标识" }, "url": { "type": "string", "description": "媒体下载地址,图片地址可能为空" }, "file_size": { "type": "string", "description": "原媒体字节数的十进制字符串" }, "file_name": { "type": "string", "description": "文件名或缓存标识" } }, "required": [ "file", "url", "file_size", "file_name" ] }, "examples": [ { "summary": "获取文件信息(仅图片/语音缓存;群文件请用 get_group_file_url)", "params": { "file_id": "" }, "notes": "仅查询已缓存的图片或语音,先尝试图片,再尝试语音。" } ], "readOnly": true, "params": [ { "name": "file_id", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "role": "file_id" }, { "name": "file", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "role": "file" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file_id": { "type": "string", "default": "", "x-role": "file_id" }, "file": { "type": "string", "default": "", "x-role": "file" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "get_fileset_id", "aliases": [], "summary": "从 QQ 闪传分享码或官方分享链接获取 fileset_id", "returns": "{ fileset_id }:解析出的文件集 ID。", "returnsSchema": { "type": "object", "properties": { "fileset_id": { "type": "string", "description": "文件集 ID" } }, "required": [ "fileset_id" ] }, "examples": [ { "summary": "从 QQ 闪传分享码或官方分享链接获取 fileset_id", "params": { "share_code": "" }, "notes": "share_code 使用实际闪传分享链接或提取码。" } ], "readOnly": true, "params": [ { "name": "share_code", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "QQ 闪传分享码,或 https://qfile.qq.com/q/... 官方分享链接" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "share_code": { "type": "string", "minLength": 1, "description": "QQ 闪传分享码,或 https://qfile.qq.com/q/... 官方分享链接" } }, "required": [ "share_code" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_fileset_info", "aliases": [], "summary": "获取文件集信息", "returnsSchema": { "type": "object", "properties": { "fileset_id": { "type": "string" }, "file_list": { "type": "array", "items": { "type": "object", "properties": { "fileset_id": { "type": "string" }, "file_name": { "type": "string" }, "orig_name": { "type": "string" }, "size": { "type": "number", "description": "文件字节数;此接口字段名为 size" }, "share_url": { "type": "string" }, "file_id": { "type": "string" }, "download_url": { "type": "string" } }, "required": [ "fileset_id", "file_name", "orig_name", "size", "share_url", "file_id", "download_url" ] } } }, "required": [ "fileset_id", "file_list" ] }, "examples": [ { "summary": "获取文件集信息", "params": { "fileset_id": "" }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。" } ], "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": "获取闪传文件列表", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "fileset_id": { "type": "string" }, "file_name": { "type": "string" }, "orig_name": { "type": "string" }, "size": { "type": "number", "description": "文件字节数;此接口字段名为 size" }, "share_url": { "type": "string" }, "file_id": { "type": "string" }, "download_url": { "type": "string" } }, "required": [ "fileset_id", "file_name", "orig_name", "size", "share_url", "file_id", "download_url" ] } }, "examples": [ { "summary": "获取闪传文件列表", "params": { "fileset_id": "" }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。" } ], "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": "获取闪传文件链接", "returnsSchema": { "type": "object", "properties": { "url": { "type": "string" } }, "required": [ "url" ] }, "examples": [ { "summary": "获取闪传文件链接", "params": { "fileset_id": "", "file_index": 0 }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。 file_index 从 0 开始。" } ], "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 }:转发内的消息节点数组(每项为 OneBot 消息事件);reply 保留 id,有内嵌引用内容时附带 message 和可用的 qq/time/seq,可作为转发节点 content 再次发送。", "returnsSchema": { "type": "object", "properties": { "messages": { "type": "array", "description": "转发消息节点数组;节点标识与本地消息 ID 不是同一契约", "items": { "type": "object", "properties": { "time": { "type": "integer", "description": "消息时间,Unix 秒" }, "message_type": { "type": "string", "enum": [ "private", "group" ] }, "sub_type": { "type": "string", "description": "消息子类型" }, "message_id": { "type": "integer", "description": "转发节点原始标识,缺失时为 0" }, "real_id": { "type": "integer", "description": "与节点 message_id 相同" }, "user_id": { "type": "integer", "description": "发送者 QQ 号" }, "group_id": { "type": "integer", "description": "群聊消息的群号,私聊可省略" }, "target_id": { "type": "integer", "description": "私聊目标 QQ 号(若有)" }, "message": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "消息段类型,例如 text、image、reply" }, "data": { "type": "object", "description": "字段随消息段类型变化,例如 text 段包含 text,reply 段包含 id", "additionalProperties": true } }, "required": [ "type", "data" ] } }, "raw_message": { "type": "string", "description": "消息的 CQ 码字符串形式" }, "font": { "type": "integer" }, "sender": { "type": "object", "properties": { "user_id": { "type": "integer" }, "nickname": { "type": "string" }, "card": { "type": "string" }, "sex": { "type": "string", "enum": [ "male", "female", "unknown" ] }, "age": { "type": "integer" }, "area": { "type": "string" }, "level": { "type": "string" }, "role": { "type": "string", "enum": [ "owner", "admin", "member" ] }, "title": { "type": "string" } }, "additionalProperties": true }, "self_id": { "type": "integer" }, "post_type": { "const": "message" }, "message_format": { "const": "array" }, "message_seq": { "type": "integer", "description": "节点消息序号,缺失时使用节点标识或 0" } }, "additionalProperties": true, "required": [ "self_id", "user_id", "time", "message_id", "message_seq", "real_id", "message_type", "sender", "raw_message", "font", "sub_type", "message", "message_format", "post_type" ] } } }, "required": [ "messages" ] }, "examples": [ { "summary": "获取合并转发消息(id 或 message_id)", "params": { "id": "" }, "notes": "id 是合并转发资源标识,通常来自转发消息段或上传结果 res_id,不是普通数值 message_id。" } ], "readOnly": true, "params": [ { "name": "id", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "message_id", "type": "string", "required": false, "schema": { "type": "string" } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "id": { "type": "string" }, "message_id": { "type": "string" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "get_friend_list", "aliases": [], "summary": "获取好友列表", "returns": "好友列表数组,每项含 QQ 号、昵称与备注。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": "integer", "description": "好友 QQ 号" }, "nickname": { "type": "string", "description": "好友昵称" }, "remark": { "type": "string", "description": "好友备注" } }, "required": [ "user_id", "nickname", "remark" ] } }, "examples": [ { "summary": "获取好友列表", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "好友" }, { "name": "get_friend_msg_history", "aliases": [], "summary": "获取好友消息历史(无锚点时从服务器获取最新双向记录)", "returns": "{ messages }:好友消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。", "returnsSchema": { "type": "object", "properties": { "messages": { "type": "array", "description": "消息对象数组;去除 post_type/self_id,附带 real_id", "items": { "type": "object", "properties": { "time": { "type": "integer", "description": "消息时间,Unix 秒" }, "message_type": { "type": "string", "enum": [ "private", "group" ] }, "sub_type": { "type": "string", "description": "消息子类型" }, "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, "real_id": { "type": "integer", "description": "原始 message_id;旧历史记录缺失时可为 0" }, "user_id": { "type": "integer", "description": "发送者 QQ 号" }, "group_id": { "type": "integer", "description": "群聊消息的群号,私聊可省略" }, "target_id": { "type": "integer", "description": "私聊目标 QQ 号(若有)" }, "message": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "消息段类型,例如 text、image、reply" }, "data": { "type": "object", "description": "字段随消息段类型变化,例如 text 段包含 text,reply 段包含 id", "additionalProperties": true } }, "required": [ "type", "data" ] } }, "raw_message": { "type": "string", "description": "消息的 CQ 码字符串形式" }, "font": { "type": "integer" }, "sender": { "type": "object", "properties": { "user_id": { "type": "integer" }, "nickname": { "type": "string" }, "card": { "type": "string" }, "sex": { "type": "string", "enum": [ "male", "female", "unknown" ] }, "age": { "type": "integer" }, "area": { "type": "string" }, "level": { "type": "string" }, "role": { "type": "string", "enum": [ "owner", "admin", "member" ] }, "title": { "type": "string" } }, "additionalProperties": true } }, "additionalProperties": true } } }, "required": [ "messages" ] }, "examples": [ { "summary": "获取好友消息历史(无锚点时从服务器获取最新双向记录)", "params": { "user_id": 10001, "count": 20 }, "notes": "省略 message_id 从最新消息开始;只读取当前账号消息。" } ], "readOnly": true, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "message_id", "type": "int", "required": false, "schema": { "type": "integer" }, "default": 0, "role": "message_id" }, { "name": "count", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "default": 20, "desc": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存" }, { "name": "reverse_order", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": true, "desc": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "message_id": { "type": "integer", "default": 0, "x-role": "message_id" }, "count": { "type": "integer", "minimum": 0, "description": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存", "default": 20 }, "reverse_order": { "type": "boolean", "description": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息", "default": true } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_friends_with_category", "aliases": [], "summary": "获取分组好友列表", "returns": "好友分组数组;每组包含 categoryId、categoryName、categoryMbCount 和 buddyList。", "returnsSchema": { "type": "array", "description": "带分组的好友列表", "items": { "type": "object", "properties": { "categoryId": { "type": "integer", "description": "分组 ID" }, "categoryName": { "type": "string", "description": "分组名称" }, "categoryMbCount": { "type": "integer", "description": "服务端报告的分组好友数" }, "buddyList": { "type": "array", "description": "该分组内的好友", "items": { "type": "object", "properties": { "user_id": { "type": "integer", "description": "QQ 号" }, "nickname": { "type": "string", "description": "昵称" }, "remark": { "type": "string", "description": "好友备注" } }, "required": [ "user_id", "nickname", "remark" ] } } }, "required": [ "categoryId", "categoryName", "categoryMbCount", "buddyList" ] } }, "examples": [ { "summary": "获取分组好友列表", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_admin_settings", "aliases": [], "summary": "获取群管理设置的当前值", "returns": "与对应设置接口字段对齐的当前群管理设置。", "returnsSchema": { "type": "object", "properties": { "add_type": { "type": "integer", "description": "加群选项(同 set_group_add_option.add_type)" }, "group_question": { "type": "string", "description": "加群问题(同 set_group_add_option.group_question)" }, "group_answer": { "type": "string", "description": "加群答案(同 set_group_add_option.group_answer)" }, "robot_member_switch": { "type": "integer", "description": "机器人加群开关(同 set_group_robot_add_option)" }, "robot_member_examine": { "type": "integer", "description": "机器人加群审核(同 set_group_robot_add_option)" }, "member_invite_policy": { "type": "string", "enum": [ "disabled", "require_approval", "no_approval", "no_approval_under_100" ], "description": "成员邀请策略(同 set_group_member_invite_policy.policy)" }, "allow_member_upload_album": { "type": "boolean", "description": "是否允许成员上传相册" }, "allow_member_temporary_session": { "type": "boolean", "description": "是否允许成员发起临时会话" }, "allow_member_create_group": { "type": "boolean", "description": "是否允许成员创建群聊" }, "new_member_history_visible": { "type": "boolean", "description": "新成员是否可查看历史消息" }, "no_finger_open": { "type": "integer", "description": "是否关闭群指纹/关键词搜索(0 开 1 关)" }, "no_code_finger_open": { "type": "integer", "description": "是否关闭群号搜索(0 开 1 关)" } }, "required": [ "add_type", "group_question", "group_answer", "robot_member_switch", "robot_member_examine", "member_invite_policy", "allow_member_upload_album", "allow_member_temporary_session", "allow_member_create_group", "new_member_history_visible", "no_finger_open", "no_code_finger_open" ] }, "examples": [ { "summary": "获取群管理设置的当前值", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "get_group_album_list", "aliases": [], "returns": "群相册列表数组,每项为一个相册的基本信息。", "returnsSchema": { "type": "array", "description": "群相册列表", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "相册 id" }, "name": { "type": "string", "description": "相册名称" }, "picNum": { "type": "integer", "description": "相册内照片数量" }, "createTime": { "type": "integer", "description": "相册创建时间(unix 秒)" }, "last_upload_time": { "type": "integer", "description": "最后上传时间(unix 秒)" }, "cover": { "type": [ "object", "null" ], "description": "相册封面;没有封面时为 null", "properties": { "type": { "type": "integer", "description": "封面媒体类型" }, "image": { "type": [ "object", "null" ], "description": "封面图片信息", "properties": { "name": { "type": "string", "description": "图片名称" }, "sloc": { "type": "string", "description": "图片短定位标识" }, "lloc": { "type": "string", "description": "图片长定位标识" }, "photoUrls": { "type": "array", "description": "不同规格的封面地址", "items": { "type": "object", "properties": { "spec": { "type": "integer", "description": "图片规格" }, "url": { "type": [ "object", "null" ], "properties": { "url": { "type": "string", "description": "封面地址" }, "width": { "type": "integer", "description": "封面宽度" }, "height": { "type": "integer", "description": "封面高度" } }, "required": [ "url", "width", "height" ] } }, "required": [ "spec", "url" ] } }, "defaultUrl": { "type": [ "object", "null" ], "properties": { "url": { "type": "string", "description": "封面地址" }, "width": { "type": "integer", "description": "封面宽度" }, "height": { "type": "integer", "description": "封面高度" } }, "required": [ "url", "width", "height" ] }, "isGif": { "type": "boolean", "description": "是否为动图" }, "hasRaw": { "type": "boolean", "description": "是否有原图" } }, "required": [ "name", "sloc", "lloc", "photoUrls", "defaultUrl", "isGif", "hasRaw" ] } }, "required": [ "type", "image" ] }, "createuin": { "type": "string", "description": "相册创建者 QQ 号" }, "createnickname": { "type": "string", "description": "相册创建者昵称(原始 Unicode)" } }, "required": [ "id", "name", "picNum", "createTime", "last_upload_time", "cover", "createuin", "createnickname" ] } }, "examples": [ { "summary": "基本调用", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群相册" }, { "name": "get_group_album_media_list", "aliases": [], "returns": "相册图片/视频列表及下一页分页游标;视频项包含 id、url、cover、尺寸、时长和多规格地址。", "returnsSchema": { "type": "object", "properties": { "mediaList": { "type": "array", "description": "相册图片或视频,未返回的字段可省略或为 null", "items": { "type": "object", "properties": { "type": { "type": [ "integer", "null" ] }, "image": { "type": [ "object", "null" ], "properties": { "name": { "type": [ "string", "null" ] }, "sloc": { "type": [ "string", "null" ] }, "lloc": { "type": [ "string", "null" ], "description": "图片长定位标识,供评论、删除等操作使用" }, "photoUrls": { "type": [ "array", "null" ], "items": { "type": "object", "properties": { "spec": { "type": [ "integer", "null" ] }, "url": { "type": [ "object", "null" ], "properties": { "url": { "type": [ "string", "null" ] }, "width": { "type": [ "integer", "null" ] }, "height": { "type": [ "integer", "null" ] } } } } } }, "defaultUrl": { "type": [ "object", "null" ], "properties": { "url": { "type": [ "string", "null" ] }, "width": { "type": [ "integer", "null" ] }, "height": { "type": [ "integer", "null" ] } } }, "isGif": { "type": [ "boolean", "null" ] }, "hasRaw": { "type": [ "boolean", "null" ] } } }, "video": { "type": [ "object", "null" ], "properties": { "id": { "type": [ "string", "null" ], "description": "视频标识,供评论、删除等操作使用" }, "url": { "type": [ "string", "null" ] }, "cover": { "type": [ "object", "null" ], "properties": { "name": { "type": [ "string", "null" ] }, "sloc": { "type": [ "string", "null" ] }, "lloc": { "type": [ "string", "null" ], "description": "图片长定位标识,供评论、删除等操作使用" }, "photoUrls": { "type": [ "array", "null" ], "items": { "type": "object", "properties": { "spec": { "type": [ "integer", "null" ] }, "url": { "type": [ "object", "null" ], "properties": { "url": { "type": [ "string", "null" ] }, "width": { "type": [ "integer", "null" ] }, "height": { "type": [ "integer", "null" ] } } } } } }, "defaultUrl": { "type": [ "object", "null" ], "properties": { "url": { "type": [ "string", "null" ] }, "width": { "type": [ "integer", "null" ] }, "height": { "type": [ "integer", "null" ] } } }, "isGif": { "type": [ "boolean", "null" ] }, "hasRaw": { "type": [ "boolean", "null" ] } } }, "width": { "type": [ "integer", "null" ] }, "height": { "type": [ "integer", "null" ] }, "videoTime": { "type": [ "string", "null" ], "description": "时长,十进制字符串" }, "videoUrl": { "type": [ "array", "null" ], "items": { "type": "object", "properties": { "spec": { "type": [ "integer", "null" ] }, "url": { "type": [ "object", "null" ], "properties": { "url": { "type": [ "string", "null" ] }, "width": { "type": [ "integer", "null" ] }, "height": { "type": [ "integer", "null" ] } } } } } } } }, "uploader": { "type": [ "string", "null" ] }, "batchId": { "type": [ "string", "null" ], "description": "上传批次,十进制字符串" }, "uploadTime": { "type": [ "string", "null" ], "description": "上传时间,十进制字符串" } } } }, "nextAttachInfo": { "type": "string", "description": "下一页分页游标(空串表示无更多)" } }, "required": [ "mediaList", "nextAttachInfo" ] }, "examples": [ { "summary": "基本调用", "params": { "group_id": 20001, "album_id": "", "attach_info": "" }, "notes": "album_id 来自 get_group_album_list;lloc 或视频 id、batch_id 来自 get_group_album_media_list。替换群号及对应资源标识。 下一页传回 nextAttachInfo。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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": "获取群 @全体成员 剩余次数", "returns": "{ can_at_all, remain_at_all_count_for_group, remain_at_all_count_for_uin }:@全体可用性与剩余次数。", "returnsSchema": { "type": "object", "properties": { "can_at_all": { "type": "boolean", "description": "当前是否可 @全体成员" }, "remain_at_all_count_for_group": { "type": "integer", "description": "本群今日剩余 @全体次数" }, "remain_at_all_count_for_uin": { "type": "integer", "description": "本账号今日剩余 @全体次数" } }, "required": [ "can_at_all", "remain_at_all_count_for_group", "remain_at_all_count_for_uin" ] }, "examples": [ { "summary": "获取群 @全体成员 剩余次数", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_detail_info", "aliases": [], "summary": "获取群详细信息", "returnsSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "group_name": { "type": "string", "description": "群名" }, "group_remark": { "type": "string", "description": "当前账号设置的群备注" }, "member_count": { "type": "integer", "description": "当前成员数" }, "max_member_count": { "type": "integer", "description": "成员上限" }, "group_create_time": { "type": "integer", "description": "建群时间戳(秒)" }, "group_level": { "type": "integer", "description": "群等级" }, "group_memo": { "type": "string", "description": "群简介 / 公告预览" }, "group_description": { "type": "string", "description": "群简介(公告不算;未加入的群为空)" }, "group_all_shut": { "type": "integer", "enum": [ -1, 0 ], "description": "是否开启全员禁言(-1 开启,0 关闭)" } }, "required": [ "group_id", "group_name", "group_remark", "member_count", "max_member_count", "group_all_shut" ] }, "examples": [ { "summary": "获取群详细信息", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "no_cache", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "no_cache": { "type": "boolean", "default": false } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_file_system_info", "aliases": [], "summary": "获取群文件系统信息", "returns": "{ file_count, limit_count, used_space, total_space }:群文件数量与容量信息(均为服务端实际值)。", "returnsSchema": { "type": "object", "properties": { "file_count": { "type": "integer", "description": "当前文件数" }, "limit_count": { "type": "integer", "description": "文件数上限" }, "used_space": { "type": "integer", "description": "已用空间(字节)" }, "total_space": { "type": "integer", "description": "总空间(字节)" } }, "required": [ "file_count", "limit_count", "used_space", "total_space" ] }, "examples": [ { "summary": "获取群文件系统信息", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_file_url", "aliases": [], "summary": "获取群文件下载链接", "returns": "群文件下载链接。", "returnsSchema": { "type": "object", "properties": { "url": { "type": "string", "description": "文件下载直链" } }, "required": [ "url" ] }, "examples": [ { "summary": "获取群文件下载链接", "params": { "group_id": 20001, "file_id": "" }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "file_id", "type": "string", "required": true, "role": "file_id", "schema": { "type": "string", "minLength": 1 } }, { "name": "busid", "type": "raw", "required": false, "schema": {} } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "file_id": { "type": "string", "minLength": 1, "x-role": "file_id" }, "busid": {} }, "required": [ "group_id", "file_id" ], "additionalProperties": true }, "category": "群文件" }, { "name": "get_group_files_by_folder", "aliases": [], "summary": "获取群子目录文件列表", "returns": "群文件系统信息(文件与文件夹列表)。", "returnsSchema": { "type": "object", "properties": { "files": { "type": "array", "description": "文件列表", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "file_id": { "type": "string", "description": "文件 ID" }, "file_name": { "type": "string", "description": "文件名" }, "busid": { "type": "integer", "description": "业务 ID" }, "file_size": { "type": "integer", "description": "文件大小(字节)" }, "upload_time": { "type": "integer", "description": "上传时间戳" }, "dead_time": { "type": "integer", "description": "过期时间戳" }, "modify_time": { "type": "integer", "description": "修改时间戳" }, "download_times": { "type": "integer", "description": "下载次数" }, "uploader": { "type": "integer", "description": "上传者 QQ 号" }, "uploader_name": { "type": "string", "description": "上传者昵称" } } } }, "folders": { "type": "array", "description": "文件夹列表", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "folder_id": { "type": "string", "description": "文件夹 ID" }, "folder_name": { "type": "string", "description": "文件夹名" }, "create_time": { "type": "integer", "description": "创建时间戳" }, "creator": { "type": "integer", "description": "创建者 QQ 号" }, "create_name": { "type": "string", "description": "创建者昵称" }, "total_file_count": { "type": "integer", "description": "文件夹内文件总数" }, "last_upload_time": { "type": "integer", "description": "最后上传时间戳" }, "last_uploader": { "type": "integer", "description": "最后上传者 QQ 号" }, "last_uploader_name": { "type": "string", "description": "最后上传者昵称" } } } } }, "required": [ "files", "folders" ] }, "examples": [ { "summary": "获取群子目录文件列表", "params": { "group_id": 20001, "folder_id": "" }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "folder_id": { "type": "string", "default": "" }, "folder": { "type": "string", "default": "" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群文件" }, { "name": "get_group_honor_info", "aliases": [], "summary": "获取群荣誉信息", "returnsSchema": { "type": "object", "properties": { "group_id": { "type": "integer" }, "current_talkative": { "anyOf": [ { "type": "object", "properties": { "user_id": { "type": [ "number", "string", "null" ] }, "nickname": { "type": "string" }, "avatar": { "type": "string" }, "description": { "type": "string" } }, "required": [ "user_id", "nickname", "avatar", "description" ] }, { "type": "null" } ] }, "talkative_list": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": [ "number", "string", "null" ] }, "nickname": { "type": "string" }, "avatar": { "type": "string" }, "description": { "type": "string" } }, "required": [ "user_id", "nickname", "avatar", "description" ] } }, "performer_list": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": [ "number", "string", "null" ] }, "nickname": { "type": "string" }, "avatar": { "type": "string" }, "description": { "type": "string" } }, "required": [ "user_id", "nickname", "avatar", "description" ] } }, "legend_list": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": [ "number", "string", "null" ] }, "nickname": { "type": "string" }, "avatar": { "type": "string" }, "description": { "type": "string" } }, "required": [ "user_id", "nickname", "avatar", "description" ] } }, "emotion_list": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": [ "number", "string", "null" ] }, "nickname": { "type": "string" }, "avatar": { "type": "string" }, "description": { "type": "string" } }, "required": [ "user_id", "nickname", "avatar", "description" ] } }, "strong_newbie_list": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": [ "number", "string", "null" ] }, "nickname": { "type": "string" }, "avatar": { "type": "string" }, "description": { "type": "string" } }, "required": [ "user_id", "nickname", "avatar", "description" ] }, "description": "当前实现始终为空数组" } }, "required": [ "group_id", "current_talkative", "talkative_list", "performer_list", "legend_list", "emotion_list", "strong_newbie_list" ] }, "examples": [ { "summary": "获取群荣誉信息", "params": { "group_id": 20001, "type": "all" }, "notes": "未请求的分类仍返回空数组;当前龙王可能为 null。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "type", "type": "string", "required": false, "schema": { "type": "string" } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "type": { "type": "string" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群信息" }, { "name": "get_group_ignore_add_request", "aliases": [], "summary": "获取被忽略的入群请求(NapCat)", "returns": "被忽略的入群请求数组(NapCat 字段命名),每项含请求序列、邀请人、群信息与处理标记。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "request_id": { "type": "integer", "description": "请求序列号" }, "invitor_uin": { "type": "integer", "description": "邀请人 QQ 号" }, "invitor_nick": { "type": "string", "description": "邀请人昵称" }, "group_id": { "type": "integer", "description": "群号" }, "message": { "type": "string", "description": "验证留言" }, "group_name": { "type": "string", "description": "群名称" }, "checked": { "type": "boolean", "description": "是否已处理" }, "actor": { "type": "integer", "description": "处理人 QQ 号" }, "requester_nick": { "type": "string", "description": "申请人昵称" } }, "required": [ "request_id", "invitor_uin", "invitor_nick", "group_id", "message", "group_name", "checked", "actor", "requester_nick" ] } }, "examples": [ { "summary": "获取被忽略的入群请求(NapCat)", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_ignored_notifies", "aliases": [], "summary": "获取被过滤的入群请求", "returns": "被过滤的入群请求数组,每项含群号、申请人、邀请人、留言与处理标记。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "group_name": { "type": "string", "description": "群名称" }, "request_id": { "type": "integer", "description": "请求序列号" }, "requester_uin": { "type": "integer", "description": "申请人 QQ 号" }, "requester_nick": { "type": "string", "description": "申请人昵称" }, "message": { "type": "string", "description": "验证留言" }, "checked": { "type": "boolean", "description": "是否已处理" }, "actor": { "type": "integer", "description": "处理人 QQ 号" }, "invitor_uin": { "type": "integer", "description": "邀请人 QQ 号" }, "invitor_nick": { "type": "string", "description": "邀请人昵称" }, "flag": { "type": "string", "description": "处理请求使用的规范 flag" } }, "required": [ "group_id", "group_name", "request_id", "requester_uin", "requester_nick", "message", "checked", "actor", "invitor_uin", "invitor_nick", "flag" ] } }, "examples": [ { "summary": "获取被过滤的入群请求", "params": {} } ], "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": "群名" }, "group_remark": { "type": "string", "description": "当前账号设置的群备注" }, "member_count": { "type": "integer", "description": "当前成员数" }, "max_member_count": { "type": "integer", "description": "成员上限" }, "group_create_time": { "type": "integer", "description": "建群时间戳(秒)" }, "group_level": { "type": "integer", "description": "群等级" }, "group_memo": { "type": "string", "description": "群简介 / 公告预览" }, "group_description": { "type": "string", "description": "群简介(公告不算;未加入的群为空)" }, "group_all_shut": { "type": "integer", "enum": [ -1, 0 ], "description": "是否开启全员禁言(-1 开启,0 关闭)" } }, "required": [ "group_id", "group_name", "group_remark", "member_count", "max_member_count", "group_all_shut" ] }, "examples": [ { "summary": "获取群信息", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "no_cache": { "type": "boolean", "default": false } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群信息" }, { "name": "get_group_info_ex", "aliases": [], "summary": "获取群信息(扩展)", "returnsSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "group_name": { "type": "string", "description": "群名" }, "group_remark": { "type": "string", "description": "当前账号设置的群备注" }, "member_count": { "type": "integer", "description": "当前成员数" }, "max_member_count": { "type": "integer", "description": "成员上限" }, "group_create_time": { "type": "integer", "description": "建群时间戳(秒)" }, "group_level": { "type": "integer", "description": "群等级" }, "group_memo": { "type": "string", "description": "群简介 / 公告预览" }, "group_description": { "type": "string", "description": "群简介(公告不算;未加入的群为空)" }, "group_all_shut": { "type": "integer", "enum": [ -1, 0 ], "description": "是否开启全员禁言(-1 开启,0 关闭)" } }, "required": [ "group_id", "group_name", "group_remark", "member_count", "max_member_count", "group_all_shut" ] }, "examples": [ { "summary": "获取群信息(扩展)", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "no_cache", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "no_cache": { "type": "boolean", "default": false } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_list", "aliases": [], "summary": "获取群列表", "returns": "群信息对象数组。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "group_name": { "type": "string", "description": "群名" }, "group_remark": { "type": "string", "description": "当前账号设置的群备注" }, "member_count": { "type": "integer", "description": "当前成员数" }, "max_member_count": { "type": "integer", "description": "成员上限" }, "group_create_time": { "type": "integer", "description": "建群时间戳(秒)" }, "group_level": { "type": "integer", "description": "群等级(列表批量场景恒 0,详见 get_group_info)" }, "group_memo": { "type": "string", "description": "群简介 / 公告预览" }, "group_description": { "type": "string", "description": "群简介(公告不算;未加入的群为空)" }, "group_all_shut": { "type": "integer", "enum": [ -1, 0 ], "description": "是否开启全员禁言(-1 开启,0 关闭)" } }, "required": [ "group_id", "group_name", "group_remark", "member_count", "max_member_count", "group_all_shut" ] } }, "examples": [ { "summary": "获取群列表", "params": { "no_cache": false } } ], "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": "群名片" }, "is_robot": { "type": "boolean", "description": "是否为机器人" }, "sex": { "type": "string", "enum": [ "male", "female", "unknown" ], "description": "性别" }, "age": { "type": "integer", "description": "年龄" }, "join_time": { "type": "integer", "description": "入群时间戳(秒)" }, "last_sent_time": { "type": "integer", "description": "最后发言时间戳(秒)" }, "shut_up_timestamp": { "type": "integer", "description": "禁言结束时间戳(秒,未禁言时为 0)" }, "level": { "type": "string", "description": "群等级" }, "qq_level": { "type": "integer", "description": "QQ 等级,仅在账号资料可用时返回" }, "qage": { "type": "integer", "description": "按注册时间计算的完整周年数(UTC),注册时间不可用时省略" }, "role": { "type": "string", "enum": [ "owner", "admin", "member" ], "description": "角色" }, "title": { "type": "string", "description": "专属头衔" }, "area": { "type": "string", "description": "地区(QQ NT 不提供,恒空)" }, "unfriendly": { "type": "boolean", "description": "是否不良记录(QQ NT 不提供,恒 false)" }, "title_expire_time": { "type": "integer", "description": "头衔过期时间戳(QQ NT 不提供,恒 0)" }, "card_changeable": { "type": "boolean", "description": "是否可改名片(占位,恒 true)" }, "qidian_master_flag": { "type": "integer", "description": "企点主号标志,0 或 1;普通账号为 0" }, "qidian_crew_flag": { "type": "integer", "description": "企点员工标志,0 或 1;普通账号为 0" }, "qidian_crew_flag_2": { "type": "integer", "description": "企点保留标志,0 或 1;普通账号为 0" } }, "required": [ "group_id", "user_id", "nickname", "role" ] }, "examples": [ { "summary": "获取群成员信息", "params": { "group_id": 20001, "user_id": 10001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint", "required": true, "role": "member_id", "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": "群号", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "member_id" }, "no_cache": { "type": "boolean", "default": false } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "群信息" }, { "name": "get_group_member_list", "aliases": [], "summary": "获取群成员列表", "returns": "群成员信息对象数组。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "user_id": { "type": "integer", "description": "QQ 号" }, "nickname": { "type": "string", "description": "昵称" }, "card": { "type": "string", "description": "群名片" }, "is_robot": { "type": "boolean", "description": "是否为机器人" }, "sex": { "type": "string", "enum": [ "male", "female", "unknown" ], "description": "性别" }, "age": { "type": "integer", "description": "年龄" }, "join_time": { "type": "integer", "description": "入群时间戳(秒)" }, "last_sent_time": { "type": "integer", "description": "最后发言时间戳(秒)" }, "shut_up_timestamp": { "type": "integer", "description": "禁言结束时间戳(秒,未禁言时为 0)" }, "level": { "type": "string", "description": "群等级" }, "qq_level": { "type": "integer", "description": "QQ 等级,仅在账号资料可用时返回" }, "qage": { "type": "integer", "description": "按注册时间计算的完整周年数(UTC),注册时间不可用时省略" }, "role": { "type": "string", "enum": [ "owner", "admin", "member" ], "description": "角色" }, "title": { "type": "string", "description": "专属头衔" }, "area": { "type": "string", "description": "地区(QQ NT 不提供,恒空)" }, "unfriendly": { "type": "boolean", "description": "是否不良记录(QQ NT 不提供,恒 false)" }, "title_expire_time": { "type": "integer", "description": "头衔过期时间戳(QQ NT 不提供,恒 0)" }, "card_changeable": { "type": "boolean", "description": "是否可改名片(占位,恒 true)" }, "qidian_master_flag": { "type": "integer", "description": "企点主号标志,0 或 1;普通账号为 0" }, "qidian_crew_flag": { "type": "integer", "description": "企点员工标志,0 或 1;普通账号为 0" }, "qidian_crew_flag_2": { "type": "integer", "description": "企点保留标志,0 或 1;普通账号为 0" } }, "required": [ "group_id", "user_id", "nickname", "role" ] } }, "examples": [ { "summary": "获取群成员列表", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "no_cache": { "type": "boolean", "default": false } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群信息" }, { "name": "get_group_msg_history", "aliases": [], "summary": "获取群消息历史", "returns": "{ messages }:群消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。", "returnsSchema": { "type": "object", "properties": { "messages": { "type": "array", "description": "消息对象数组;去除 post_type/self_id,附带 real_id", "items": { "type": "object", "properties": { "time": { "type": "integer", "description": "消息时间,Unix 秒" }, "message_type": { "type": "string", "enum": [ "private", "group" ] }, "sub_type": { "type": "string", "description": "消息子类型" }, "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, "real_id": { "type": "integer", "description": "原始 message_id;旧历史记录缺失时可为 0" }, "user_id": { "type": "integer", "description": "发送者 QQ 号" }, "group_id": { "type": "integer", "description": "群聊消息的群号,私聊可省略" }, "target_id": { "type": "integer", "description": "私聊目标 QQ 号(若有)" }, "message": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "消息段类型,例如 text、image、reply" }, "data": { "type": "object", "description": "字段随消息段类型变化,例如 text 段包含 text,reply 段包含 id", "additionalProperties": true } }, "required": [ "type", "data" ] } }, "raw_message": { "type": "string", "description": "消息的 CQ 码字符串形式" }, "font": { "type": "integer" }, "sender": { "type": "object", "properties": { "user_id": { "type": "integer" }, "nickname": { "type": "string" }, "card": { "type": "string" }, "sex": { "type": "string", "enum": [ "male", "female", "unknown" ] }, "age": { "type": "integer" }, "area": { "type": "string" }, "level": { "type": "string" }, "role": { "type": "string", "enum": [ "owner", "admin", "member" ] }, "title": { "type": "string" } }, "additionalProperties": true } }, "additionalProperties": true } } }, "required": [ "messages" ] }, "examples": [ { "summary": "获取群消息历史", "params": { "group_id": 20001, "count": 20 }, "notes": "省略 message_id 从最新消息开始;翻页使用上一页实际 message_id,不要自行加减。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "message_id", "type": "int", "required": false, "schema": { "type": "integer" }, "default": 0, "role": "message_id" }, { "name": "count", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "default": 20 }, { "name": "reverse_order", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": true, "desc": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "message_id": { "type": "integer", "default": 0, "x-role": "message_id" }, "count": { "type": "integer", "minimum": 0, "default": 20 }, "reverse_order": { "type": "boolean", "description": "仅在 message_id 非 0 时生效;true 返回锚点及更旧消息,false 返回锚点及更新消息", "default": true } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_root_files", "aliases": [], "summary": "获取群根目录文件列表", "returns": "群文件系统信息(文件与文件夹列表)。", "returnsSchema": { "type": "object", "properties": { "files": { "type": "array", "description": "文件列表", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "file_id": { "type": "string", "description": "文件 ID" }, "file_name": { "type": "string", "description": "文件名" }, "busid": { "type": "integer", "description": "业务 ID" }, "file_size": { "type": "integer", "description": "文件大小(字节)" }, "upload_time": { "type": "integer", "description": "上传时间戳" }, "dead_time": { "type": "integer", "description": "过期时间戳" }, "modify_time": { "type": "integer", "description": "修改时间戳" }, "download_times": { "type": "integer", "description": "下载次数" }, "uploader": { "type": "integer", "description": "上传者 QQ 号" }, "uploader_name": { "type": "string", "description": "上传者昵称" } } } }, "folders": { "type": "array", "description": "文件夹列表", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "folder_id": { "type": "string", "description": "文件夹 ID" }, "folder_name": { "type": "string", "description": "文件夹名" }, "create_time": { "type": "integer", "description": "创建时间戳" }, "creator": { "type": "integer", "description": "创建者 QQ 号" }, "create_name": { "type": "string", "description": "创建者昵称" }, "total_file_count": { "type": "integer", "description": "文件夹内文件总数" }, "last_upload_time": { "type": "integer", "description": "最后上传时间戳" }, "last_uploader": { "type": "integer", "description": "最后上传者 QQ 号" }, "last_uploader_name": { "type": "string", "description": "最后上传者昵称" } } } } }, "required": [ "files", "folders" ] }, "examples": [ { "summary": "获取群根目录文件列表", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群文件" }, { "name": "get_group_share_link", "aliases": [], "summary": "获取群分享链接", "returns": "用于分享或邀请加群的链接,可作为群二维码内容。", "returnsSchema": { "type": "object", "properties": { "url": { "type": "string", "description": "加群分享链接" } }, "required": [ "url" ] }, "examples": [ { "summary": "获取群分享链接", "params": { "group_id": 20001, "need_short_url": true }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "need_short_url", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": true, "desc": "是否获取短链接" }, { "name": "src_id", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "default": 73, "desc": "来源标识(兼容参数)" }, { "name": "additional_param", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "desc": "附加参数" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "need_short_url": { "type": "boolean", "description": "是否获取短链接", "default": true }, "src_id": { "type": "integer", "minimum": 0, "maximum": 4294967295, "description": "来源标识(兼容参数)", "default": 73 }, "additional_param": { "type": "string", "description": "附加参数", "default": "" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群信息" }, { "name": "get_group_shut_list", "aliases": [], "summary": "获取群禁言列表", "returns": "仍在禁言中的成员数组,每项含 QQ 号、昵称与禁言到期时间戳(秒)。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": "integer", "description": "成员 QQ 号" }, "nickname": { "type": "string", "description": "成员昵称" }, "shut_up_time": { "type": "integer", "description": "禁言到期时间戳(秒)" } }, "required": [ "user_id", "nickname", "shut_up_time" ] } }, "examples": [ { "summary": "获取群禁言列表", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_signed_list", "aliases": [], "summary": "获取群今日打卡列表", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": "integer" }, "nick": { "type": "string" }, "time": { "type": "integer" }, "rank": { "type": "integer" } }, "required": [ "user_id", "nick", "time", "rank" ] } }, "examples": [ { "summary": "获取群今日打卡列表", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_group_system_msg", "aliases": [], "summary": "获取群系统消息", "returns": "群系统消息数组,可按群号或未处理状态过滤。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "group_id": { "type": "integer", "description": "群号" }, "group_name": { "type": "string", "description": "群名称" }, "request_id": { "type": "integer", "description": "请求序列号" }, "requester_uin": { "type": "integer", "description": "申请人 QQ 号" }, "requester_nick": { "type": "string", "description": "申请人昵称" }, "invitor_uin": { "type": "integer", "description": "邀请人 QQ 号,无邀请时为 0" }, "invitor_nick": { "type": "string", "description": "邀请人昵称" }, "message": { "type": "string", "description": "验证留言" }, "checked": { "type": "boolean", "description": "是否已处理" }, "flag": { "type": "string", "description": "处理请求使用的规范 flag" } }, "required": [ "group_id", "group_name", "request_id", "requester_uin", "requester_nick", "invitor_uin", "invitor_nick", "message", "checked", "flag" ] } }, "examples": [ { "summary": "获取群系统消息", "params": { "group_id": 20001, "only_pending": true, "count": 20 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "only_pending", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false }, { "name": "count", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1, "maximum": 100 }, "default": 50, "desc": "每个收件箱最多读取的记录数" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "only_pending": { "type": "boolean", "default": false }, "count": { "type": "integer", "minimum": 1, "maximum": 100, "description": "每个收件箱最多读取的记录数", "default": 50 } }, "additionalProperties": true }, "category": "群信息" }, { "name": "get_group_tags", "aliases": [], "summary": "读取某个群分类下的资料标签", "returns": "该分类下的资料标签列表。", "returnsSchema": { "type": "object", "properties": { "tags": { "type": "array", "description": "资料标签", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "标签编号" }, "name": { "type": "string", "description": "标签名" }, "type": { "type": "integer", "description": "标签类型" } }, "required": [ "id", "name", "type" ] } } }, "required": [ "tags" ] }, "examples": [ { "summary": "读取某个群分类下的资料标签", "params": { "group_class": 1 }, "notes": "group_class 使用实际群分类编号。" } ], "readOnly": true, "params": [ { "name": "group_class", "type": "int", "required": true, "schema": { "type": "integer", "minimum": 0, "maximum": 4294967295 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_class": { "type": "integer", "minimum": 0, "maximum": 4294967295 } }, "required": [ "group_class" ], "additionalProperties": true }, "category": "群管理" }, { "name": "get_group_todo_list", "aliases": [], "summary": "获取群待办列表", "returns": "群待办数组,包含可用于待办操作的消息标识、服务端摘要与时间", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, "message_seq": { "type": "integer" }, "message_random": { "type": "integer" }, "message": { "anyOf": [ { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "消息段类型,例如 text、image、reply" }, "data": { "type": "object", "description": "字段随消息段类型变化,例如 text 段包含 text,reply 段包含 id", "additionalProperties": true } }, "required": [ "type", "data" ] } }, { "type": "null" } ], "description": "本地缓存中的消息段;未缓存时为 null" }, "text": { "type": "string" }, "create_time": { "type": "integer" }, "update_time": { "type": "integer" } }, "required": [ "message_id", "message_seq", "message_random", "message", "text", "create_time", "update_time" ] } }, "examples": [ { "summary": "获取群待办列表", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_image", "aliases": [], "summary": "获取图片信息", "returnsSchema": { "type": "object", "properties": { "file": { "type": "string", "description": "媒体地址;图片无地址时可为原文件标识" }, "url": { "type": "string", "description": "媒体下载地址,图片地址可能为空" }, "file_size": { "type": "string", "description": "原媒体字节数的十进制字符串" }, "file_name": { "type": "string", "description": "文件名或缓存标识" } }, "required": [ "file", "url", "file_size", "file_name" ] }, "examples": [ { "summary": "获取图片信息", "params": { "file": "" }, "notes": "file 或 file_id 原样取自图片消息段,须在当前账号媒体缓存中存在。" } ], "readOnly": true, "params": [ { "name": "file", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "role": "image" }, { "name": "file_id", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "role": "file_id" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file": { "type": "string", "default": "", "x-role": "image" }, "file_id": { "type": "string", "default": "", "x-role": "file_id" } }, "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" ] }, "examples": [ { "summary": "基本调用", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "信息" }, { "name": "get_mini_app_ark", "aliases": [], "summary": "获取小程序卡片 ark", "returnsSchema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "ver": { "description": "服务端卡片版本,原样透传" }, "prompt": { "description": "服务端提示文本,原样透传" }, "config": { "description": "服务端卡片配置,原样透传" }, "app": { "description": "服务端应用名,原样透传" }, "view": { "description": "服务端视图,原样透传" }, "meta": { "description": "服务端卡片元数据,原样透传" }, "miniappShareOrigin": { "const": 3 }, "miniappOpenRefer": { "const": "10002" } }, "required": [ "miniappShareOrigin", "miniappOpenRefer" ] } }, "required": [ "data" ] }, "examples": [ { "summary": "获取小程序卡片 ark", "params": { "type": "bili", "title": "示例视频", "desc": "视频介绍", "pic_url": "https://example.com/cover.png", "jump_url": "https://www.bilibili.com/video/" }, "notes": "替换为实际分享地址;当前仅支持 bili 和 weibo。返回的 data 是卡片对象,不会自动发送。" } ], "readOnly": true, "params": [ { "name": "type", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "title", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "desc", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "picUrl", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "pic_url", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "jumpUrl", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "jump_url", "type": "string", "required": false, "schema": { "type": "string" } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "type": { "type": "string" }, "title": { "type": "string" }, "desc": { "type": "string" }, "picUrl": { "type": "string" }, "pic_url": { "type": "string" }, "jumpUrl": { "type": "string" }, "jump_url": { "type": "string" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "get_msg", "aliases": [], "summary": "获取消息", "returns": "消息事件对象(去除 post_type/self_id,附带 real_id);逐个尝试刷新图片、语音和视频 URL,成功使用新地址,失败保留该段原地址并继续返回消息;地址更新时同步 raw_message。", "returnsSchema": { "allOf": [ { "type": "object", "properties": { "time": { "type": "integer", "description": "消息时间,Unix 秒" }, "message_type": { "type": "string", "enum": [ "private", "group" ] }, "sub_type": { "type": "string", "description": "消息子类型" }, "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, "real_id": { "type": "integer", "description": "原始 message_id;旧历史记录缺失时可为 0" }, "user_id": { "type": "integer", "description": "发送者 QQ 号" }, "group_id": { "type": "integer", "description": "群聊消息的群号,私聊可省略" }, "target_id": { "type": "integer", "description": "私聊目标 QQ 号(若有)" }, "message": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "消息段类型,例如 text、image、reply" }, "data": { "type": "object", "description": "字段随消息段类型变化,例如 text 段包含 text,reply 段包含 id", "additionalProperties": true } }, "required": [ "type", "data" ] } }, "raw_message": { "type": "string", "description": "消息的 CQ 码字符串形式" }, "font": { "type": "integer" }, "sender": { "type": "object", "properties": { "user_id": { "type": "integer" }, "nickname": { "type": "string" }, "card": { "type": "string" }, "sex": { "type": "string", "enum": [ "male", "female", "unknown" ] }, "age": { "type": "integer" }, "area": { "type": "string" }, "level": { "type": "string" }, "role": { "type": "string", "enum": [ "owner", "admin", "member" ] }, "title": { "type": "string" } }, "additionalProperties": true } }, "additionalProperties": true }, { "type": "object", "properties": { "real_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "real_id" ] } ], "description": "消息事件去除 post_type/self_id 并增加 real_id;群聊和私聊字段有所不同" }, "examples": [ { "summary": "获取消息", "params": { "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": true, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "消息" }, { "name": "get_msg_emoji_likes", "aliases": [], "summary": "获取一条消息的全部表情回应", "returns": "该消息上每个表情回应的编号、数量与用户列表。", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "emoji_id": { "type": "string", "description": "表情编号" }, "emoji_type": { "type": "integer", "description": "表情类型" }, "count": { "type": "integer", "description": "回应数量" }, "last_reaction_time": { "type": "integer", "description": "最近一次回应时间" }, "users": { "type": "array", "items": { "type": "object", "properties": { "user_id": { "type": "integer", "description": "用户 QQ 号" } }, "required": [ "user_id" ] } } }, "required": [ "emoji_id", "emoji_type", "count", "last_reaction_time", "users" ] } }, "examples": [ { "summary": "获取一条消息的全部表情回应", "params": { "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": true, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "get_online_clients", "aliases": [], "summary": "获取在线客户端", "returns": "{ clients }:QQ 本次会话最近推送的在线设备快照。", "returnsSchema": { "type": "object", "properties": { "clients": { "type": "array", "description": "在线设备列表", "items": { "type": "object", "properties": { "app_id": { "type": "integer", "description": "客户端 ID" }, "device_name": { "type": "string", "description": "设备名称" }, "device_kind": { "type": "string", "enum": [ "电脑", "Pad", "手机", "未知设备" ], "description": "设备类别" } }, "required": [ "app_id", "device_name", "device_kind" ] } } }, "required": [ "clients" ] }, "examples": [ { "summary": "获取在线客户端", "params": { "no_cache": false } } ], "readOnly": true, "params": [ { "name": "no_cache", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false, "desc": "是否强制刷新;QQ 当前仅暴露本地快照,true 会明确失败" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "no_cache": { "type": "boolean", "description": "是否强制刷新;QQ 当前仅暴露本地快照,true 会明确失败", "default": false } }, "additionalProperties": true }, "category": "扩展" }, { "name": "get_private_file_url", "aliases": [], "summary": "获取私聊文件下载链接", "returns": "私聊文件下载链接。", "returnsSchema": { "type": "object", "properties": { "url": { "type": "string", "description": "文件下载直链" } }, "required": [ "url" ] }, "examples": [ { "summary": "获取私聊文件下载链接", "params": { "user_id": 10001, "file_id": "" }, "notes": "使用私聊文件消息段中的 file_id,必要时原样传 file_hash。" } ], "readOnly": true, "params": [ { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "file_id", "type": "string", "required": true, "role": "file_id", "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, "x-role": "user_id" }, "file_id": { "type": "string", "minLength": 1, "x-role": "file_id" }, "file_hash": { "type": "string", "default": "" } }, "required": [ "file_id" ], "additionalProperties": true }, "category": "群文件" }, { "name": "get_profile_like", "aliases": [], "summary": "获取资料点赞", "returns": "点赞资料:uid、最近点赞时间、收藏与点赞统计及用户明细。", "returnsSchema": { "type": "object", "properties": { "uid": { "type": "string", "description": "用户 uid" }, "time": { "type": "integer", "description": "最近点赞时间戳" }, "favoriteInfo": { "type": "object", "description": "收藏统计", "properties": { "total_count": { "type": "integer", "description": "收藏总数" }, "last_time": { "type": "integer", "description": "最近收藏时间戳" }, "today_count": { "type": "integer", "description": "今日收藏数" }, "userInfos": { "type": "array", "description": "收藏用户列表", "items": { "type": "object", "properties": { "uid": { "type": "string", "description": "用户 uid" }, "uin": { "type": "integer", "description": "用户 QQ 号;资料中没有有效号码时为 0" }, "src": { "type": "integer", "description": "来源类型" }, "latestTime": { "type": "integer", "description": "最近互动时间戳" }, "count": { "type": "integer", "description": "互动次数" }, "giftCount": { "type": "integer", "description": "礼物数量" }, "customId": { "type": "integer", "description": "自定义标识" }, "lastCharged": { "type": "integer", "description": "最近充能时间" }, "bAvailableCnt": { "type": "integer", "description": "可用次数" }, "bTodayVotedCnt": { "type": "integer", "description": "今日已点赞次数" }, "nick": { "type": "string", "description": "昵称" }, "gender": { "type": "integer", "description": "性别" }, "age": { "type": "integer", "description": "年龄" }, "isFriend": { "type": "boolean", "description": "是否为好友" }, "isvip": { "type": "boolean", "description": "是否为会员" }, "isSvip": { "type": "boolean", "description": "是否为超级会员" } }, "required": [ "uid", "uin", "src", "latestTime", "count", "giftCount", "customId", "lastCharged", "bAvailableCnt", "bTodayVotedCnt", "nick", "gender", "age", "isFriend", "isvip", "isSvip" ] } } } }, "voteInfo": { "type": "object", "description": "点赞统计", "properties": { "total_count": { "type": "integer", "description": "点赞总数" }, "new_count": { "type": "integer", "description": "新增点赞数" }, "new_nearby_count": { "type": "integer", "description": "附近的人新增点赞数" }, "last_visit_time": { "type": "integer", "description": "最近访问时间戳" }, "userInfos": { "type": "array", "description": "点赞用户列表", "items": { "type": "object", "properties": { "uid": { "type": "string", "description": "用户 uid" }, "uin": { "type": "integer", "description": "用户 QQ 号;资料中没有有效号码时为 0" }, "src": { "type": "integer", "description": "来源类型" }, "latestTime": { "type": "integer", "description": "最近互动时间戳" }, "count": { "type": "integer", "description": "互动次数" }, "giftCount": { "type": "integer", "description": "礼物数量" }, "customId": { "type": "integer", "description": "自定义标识" }, "lastCharged": { "type": "integer", "description": "最近充能时间" }, "bAvailableCnt": { "type": "integer", "description": "可用次数" }, "bTodayVotedCnt": { "type": "integer", "description": "今日已点赞次数" }, "nick": { "type": "string", "description": "昵称" }, "gender": { "type": "integer", "description": "性别" }, "age": { "type": "integer", "description": "年龄" }, "isFriend": { "type": "boolean", "description": "是否为好友" }, "isvip": { "type": "boolean", "description": "是否为会员" }, "isSvip": { "type": "boolean", "description": "是否为超级会员" } }, "required": [ "uid", "uin", "src", "latestTime", "count", "giftCount", "customId", "lastCharged", "bAvailableCnt", "bTodayVotedCnt", "nick", "gender", "age", "isFriend", "isvip", "isSvip" ] } } } } }, "required": [ "uid", "time", "favoriteInfo", "voteInfo" ] }, "examples": [ { "summary": "获取资料点赞", "params": { "user_id": 10001, "start": 0, "count": 10 } } ], "readOnly": true, "params": [ { "name": "user_id", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "default": 0, "role": "user_id" }, { "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, "x-role": "user_id" }, "start": { "type": "integer", "minimum": 0, "default": 0 }, "count": { "type": "integer", "minimum": 0, "default": 10 } }, "additionalProperties": true }, "category": "扩展" }, { "name": "get_qun_album_list", "aliases": [], "returns": "NapCat 风格的相册列表封套:{album_list, attach_info, has_more}。", "returnsSchema": { "type": "object", "properties": { "album_list": { "type": "array", "description": "相册列表", "items": { "type": "object", "properties": { "album_id": { "type": "string", "description": "相册 id" }, "name": { "type": "string", "description": "相册名称" }, "create_time": { "type": "string", "description": "相册创建时间(unix 秒)" }, "last_upload_time": { "type": "string", "description": "最后上传时间(unix 秒)" }, "upload_number": { "type": "string", "description": "相册内媒体数量" }, "cover": { "type": [ "object", "null" ], "description": "相册封面;没有封面时为 null", "properties": { "type": { "type": "integer", "description": "封面媒体类型" }, "image": { "type": [ "object", "null" ], "description": "封面图片信息", "properties": { "name": { "type": "string", "description": "图片名称" }, "sloc": { "type": "string", "description": "图片短定位标识" }, "lloc": { "type": "string", "description": "图片长定位标识" }, "photoUrls": { "type": "array", "description": "不同规格的封面地址", "items": { "type": "object", "properties": { "spec": { "type": "integer", "description": "图片规格" }, "url": { "type": [ "object", "null" ], "properties": { "url": { "type": "string", "description": "封面地址" }, "width": { "type": "integer", "description": "封面宽度" }, "height": { "type": "integer", "description": "封面高度" } }, "required": [ "url", "width", "height" ] } }, "required": [ "spec", "url" ] } }, "defaultUrl": { "type": [ "object", "null" ], "properties": { "url": { "type": "string", "description": "封面地址" }, "width": { "type": "integer", "description": "封面宽度" }, "height": { "type": "integer", "description": "封面高度" } }, "required": [ "url", "width", "height" ] }, "isGif": { "type": "boolean", "description": "是否为动图" }, "hasRaw": { "type": "boolean", "description": "是否有原图" } }, "required": [ "name", "sloc", "lloc", "photoUrls", "defaultUrl", "isGif", "hasRaw" ] } }, "required": [ "type", "image" ] }, "creator": { "type": "object", "description": "相册创建者信息", "properties": { "uin": { "type": "string", "description": "创建者 QQ 号" }, "uid": { "type": "string", "description": "创建者 UID" }, "nick": { "type": "string", "description": "创建者原始 Unicode 昵称" } } } }, "required": [ "album_id", "name", "create_time", "last_upload_time", "upload_number", "cover" ] } }, "attach_info": { "type": "string", "description": "下一页分页游标" }, "has_more": { "type": "boolean", "description": "是否还有更多" } }, "required": [ "album_list", "attach_info", "has_more" ] }, "examples": [ { "summary": "基本调用", "params": { "group_id": 20001, "attach_info": "" }, "notes": "后续页原样传回上一页的 attach_info;has_more=false 表示结束。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "attach_info", "type": "string", "required": false, "schema": { "type": "string" }, "default": "" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "attach_info": { "type": "string", "default": "" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群相册" }, { "name": "get_qzone_feeds", "aliases": [], "summary": "获取 QQ 空间好友动态,支持结构化正文与游标分页", "returns": "好友动态、可提取的正文与图片、统计值及下一页游标;未知内容或统计为 null,HTML 保留。", "returnsSchema": { "type": "object", "properties": { "feeds": { "type": "array", "description": "本页好友动态数组", "items": { "type": "object", "properties": { "uin": { "type": "integer", "description": "动态作者 QQ 号" }, "nickname": { "type": "string", "description": "作者昵称" }, "time": { "type": "integer", "description": "发表时间(unix 秒)" }, "appid": { "type": "integer", "description": "Qzone 应用 id(311=说说,4=相册,…)" }, "key": { "type": "string", "description": "feed 句柄(Qzone 用于定位该条动态)" }, "html": { "type": "string", "description": "预渲染 HTML 原样透传" }, "tid": { "type": [ "string", "null" ], "description": "可确认的说说编号;其他类型或无法确认时为 null" }, "content": { "type": [ "string", "null" ], "description": "当前动态正文,不含评论;无法识别时为 null" }, "content_complete": { "type": [ "boolean", "null" ], "description": "正文是否完整;false 表示折叠摘要,null 表示未知" }, "images": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "当前正文中可提取的图片地址,不含头像、评论图片或视频封面;不保证完整相册" }, "like_count": { "type": [ "integer", "null" ], "description": "服务端提供的点赞数;未知时为 null" }, "comment_count": { "type": [ "integer", "null" ], "description": "服务端提供的评论数;未知时为 null,不以展示的评论条数估算" } }, "required": [ "uin", "nickname", "time", "appid", "key", "html", "tid", "content", "content_complete", "images", "like_count", "comment_count" ] } }, "has_more": { "type": "boolean", "description": "服务端是否报告本页之后还有更多页" }, "next_cursor": { "type": [ "string", "null" ], "description": "下一页游标,原样作为 cursor 传回;没有更多页时为 null" } }, "required": [ "feeds", "has_more", "next_cursor" ] }, "examples": [ { "summary": "获取 QQ 空间好友动态首页及结构化内容", "params": { "page_num": 1, "count": 10 }, "notes": "保留 html;content/images 为可提取的正文和图片,未知值为 null。续页使用 next_cursor。" }, { "summary": "继续读取上一页之后的好友动态", "params": { "cursor": "", "count": 10 }, "notes": "cursor 原样使用上次返回的 next_cursor,仅适用于同一账号;has_more=false 时停止。" } ], "readOnly": true, "params": [ { "name": "page_num", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1 }, "desc": "页码(1 起);不传 cursor 时从首页顺序定位,较深页可能耗时较长", "default": 1 }, { "name": "count", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1, "maximum": 50 }, "desc": "本页数量", "default": 10 }, { "name": "cursor", "type": "string", "required": false, "schema": { "type": "string", "minLength": 1, "maxLength": 65536 }, "desc": "上一次返回的 next_cursor;原样传递,省略 page_num 或传入对应页码" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "page_num": { "type": "integer", "minimum": 1, "description": "页码(1 起);不传 cursor 时从首页顺序定位,较深页可能耗时较长", "default": 1 }, "count": { "type": "integer", "minimum": 1, "maximum": 50, "description": "本页数量", "default": 10 }, "cursor": { "type": "string", "minLength": 1, "maxLength": 65536, "description": "上一次返回的 next_cursor;原样传递,省略 page_num 或传入对应页码" } }, "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_msg_detail", "aliases": [], "summary": "获取 QQ 空间说说详情与一页评论(含服务端内联回复,需有访问权限)", "returns": "说说详情、服务端报告的评论总数与本页评论;replies 仅含服务端内联返回的二级回复,不保证完整。", "returnsSchema": { "type": "object", "properties": { "tid": { "type": "string", "description": "说说 ID" }, "content": { "type": "string", "description": "说说正文" }, "comment_num": { "type": "integer", "description": "服务端报告的评论总数(非本页数量)" }, "comments": { "type": "array", "description": "本页一级评论,数量可能少于 num", "items": { "type": "object", "properties": { "uin": { "type": "integer", "description": "评论者 QQ 号" }, "name": { "type": "string", "description": "评论者昵称" }, "time": { "type": "integer", "description": "评论时间(unix 秒)" }, "content": { "type": "string", "description": "评论正文,保留空间表情和 @ 标记" }, "comment_id": { "type": "string", "description": "评论 ID,在所属说说或父评论内唯一" }, "replies": { "type": "array", "description": "服务端内联二级回复,可能不完整", "items": { "type": "object", "properties": { "uin": { "type": "integer", "description": "评论者 QQ 号" }, "name": { "type": "string", "description": "评论者昵称" }, "time": { "type": "integer", "description": "评论时间(unix 秒)" }, "content": { "type": "string", "description": "评论正文,保留空间表情和 @ 标记" }, "comment_id": { "type": "string", "description": "评论 ID,在所属说说或父评论内唯一" }, "parent_comment_id": { "type": "string", "description": "所属一级评论 ID;回复时作为 comment_id" }, "parent_comment_uin": { "type": "integer", "description": "所属一级评论作者;回复时作为 comment_uin" } }, "required": [ "uin", "name", "time", "content", "comment_id", "parent_comment_id", "parent_comment_uin" ] } } }, "required": [ "uin", "name", "time", "content", "comment_id", "replies" ] } } }, "required": [ "tid", "content", "comment_num", "comments" ] }, "examples": [ { "summary": "获取 QQ 空间说说详情与一页评论(含服务端内联回复,需有访问权限)", "params": { "tid": "", "pos": 0, "num": 20 }, "notes": "tid 来自 get_qzone_msg_list;操作需有该说说的访问或管理权限。 replies 仅为服务端内联回复,不保证完整。" } ], "readOnly": true, "params": [ { "name": "tid", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)" }, { "name": "target_uin", "type": "uint", "required": false, "role": "user_id", "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": { "tid": { "type": "string", "minLength": 1, "description": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)" }, "target_uin": { "type": "integer", "minimum": 1, "description": "说说所属 QQ 号,省略则取机器人自己", "x-role": "user_id" }, "pos": { "type": "integer", "minimum": 0, "description": "一级评论起始偏移", "default": 0 }, "num": { "type": "integer", "minimum": 1, "maximum": 100, "description": "请求的一级评论数量,实际数量受服务端限制", "default": 20 } }, "required": [ "tid" ], "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_msg_list", "aliases": [], "summary": "获取 QQ 空间说说列表(默认机器人自己的空间)", "returns": "说说列表对象,含说说总数与本页说说数组。", "returnsSchema": { "type": "object", "properties": { "total": { "type": "integer", "description": "账号说说总数(非本页数量)" }, "msglist": { "type": "array", "description": "本页说说数组", "items": { "type": "object", "properties": { "tid": { "type": "string", "description": "说说 id(delete/comment/like 的句柄)" }, "content": { "type": "string", "description": "说说正文" }, "time": { "type": "integer", "description": "发表时间(unix 秒)" }, "comment_num": { "type": "integer", "description": "评论数" }, "is_private": { "type": "boolean", "description": "是否仅自己可见" }, "images": { "type": "array", "items": { "type": "string" }, "description": "图片 URL 列表(每图取最大可用变体)" } }, "required": [ "tid", "content", "time", "comment_num", "is_private", "images" ] } } }, "required": [ "total", "msglist" ] }, "examples": [ { "summary": "获取 QQ 空间说说列表(默认机器人自己的空间)", "params": { "pos": 0, "num": 20 }, "notes": "默认读取当前账号;指定 target_uin 时需有访问权限。" } ], "readOnly": true, "params": [ { "name": "target_uin", "type": "uint", "required": false, "role": "user_id", "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 号,省略则取机器人自己", "x-role": "user_id" }, "pos": { "type": "integer", "minimum": 0, "description": "起始偏移", "default": 0 }, "num": { "type": "integer", "minimum": 1, "maximum": 100, "description": "本页数量", "default": 20 } }, "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_profile", "aliases": [], "summary": "获取 QQ 空间名称和说明(默认当前账号)", "returns": "空间名称和说明。", "returnsSchema": { "type": "object", "properties": { "name": { "type": "string", "description": "空间名称" }, "description": { "type": "string", "description": "空间说明" } }, "required": [ "name", "description" ] }, "examples": [ { "summary": "获取当前账号的空间名称和说明", "params": {} }, { "summary": "获取指定账号的空间名称和说明", "params": { "target_uin": 10001 }, "notes": "需要有该空间的访问权限。" } ], "readOnly": true, "params": [ { "name": "target_uin", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "目标 QQ 号,省略则取机器人自己" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "target_uin": { "type": "integer", "minimum": 1, "description": "目标 QQ 号,省略则取机器人自己", "x-role": "user_id" } }, "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_public_capabilities", "aliases": [], "summary": "读取当前账号的空友爱看入口与推权限", "returns": "当前账号的上游入口能力对象,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "查询当前账号是否有空友爱看入口及推能力", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_public_comments", "aliases": [], "summary": "继续读取推荐动态评论", "returns": "上游评论页对象,保留评论、分页和未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "读取详情之后的下一页评论", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "cursor": "" }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 先读详情获取初始评论及 attach_info,再原样传入 cursor。" } ], "readOnly": true, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "cursor", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "详情或上一评论页返回的 attach_info" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "cursor": { "type": "string", "minLength": 1, "description": "详情或上一评论页返回的 attach_info" } }, "required": [ "feed", "cursor" ], "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_public_feed_detail", "aliases": [], "summary": "读取推荐动态详情及初始评论", "returns": "上游详情 data;初始评论位于 feed.feed.cell_comment.comments,续页使用 attach_info。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "读取推荐动态详情", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } } }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。" } ], "readOnly": true, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" } }, "required": [ "feed" ], "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_public_feeds", "aliases": [], "summary": "读取空友爱看推荐动态,支持独立游标分页", "returns": "推荐动态原始 cell 对象及分页状态,保留其余上游页面字段。", "returnsSchema": { "type": "object", "additionalProperties": true, "properties": { "feeds": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "原始动态 cell 对象,后续详情和互动需原样传入" }, "has_more": { "type": "boolean", "description": "服务端是否报告还有下一页" }, "next_cursor": { "type": [ "string", "null" ], "description": "下一页游标;无下一页时为 null" } }, "required": [ "feeds", "has_more", "next_cursor" ] }, "examples": [ { "summary": "读取空友爱看推荐首页", "params": {} }, { "summary": "继续读取推荐动态", "params": { "cursor": "" }, "notes": "cursor 原样使用上次返回的 next_cursor,仅适用于同一账号;has_more=false 时停止。" } ], "readOnly": true, "params": [ { "name": "cursor", "type": "string", "required": false, "schema": { "type": "string", "minLength": 1, "maxLength": 65536 }, "desc": "上次返回的 next_cursor,省略则刷新首页" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "cursor": { "type": "string", "minLength": 1, "maxLength": 65536, "description": "上次返回的 next_cursor,省略则刷新首页" } }, "additionalProperties": true }, "category": "空间" }, { "name": "get_qzone_public_replies", "aliases": [], "summary": "继续读取指定评论的回复", "returns": "上游回复页对象,保留回复、分页和未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "读取某条评论的后续回复", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "comment": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 }, "reply_attach_info": "" } }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 comment 可取 get_qzone_public_feed_detail 返回的 feed.feed.cell_comment.comments,或后续评论页;保留完整对象。 首次续读使用评论自带的 reply_attach_info;之后传上一回复页的游标。" } ], "readOnly": true, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "comment", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, { "name": "cursor", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "上一回复页的 reply_attach_info;省略则使用评论自带游标", "default": "" }, { "name": "page_size", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1 }, "desc": "请求的回复数量", "default": 20 } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "comment": { "type": "object", "additionalProperties": true, "description": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, "cursor": { "type": "string", "description": "上一回复页的 reply_attach_info;省略则使用评论自带游标", "default": "" }, "page_size": { "type": "integer", "minimum": 1, "description": "请求的回复数量", "default": 20 } }, "required": [ "feed", "comment" ], "additionalProperties": true }, "category": "空间" }, { "name": "get_recent_contact", "aliases": [], "summary": "获取最近会话(占位)", "returns": "占位实现,恒返回空数组。", "returnsSchema": { "type": "array", "description": "最近会话列表(占位,恒空)" }, "examples": [ { "summary": "获取最近会话(占位)", "notes": "兼容占位接口,当前始终返回空数组,不能据此判断真实会话列表。", "params": { "count": 10 } } ], "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": "获取语音信息;传 out_format 则服务端转码并附带 base64", "returns": "语音信息(file/url 为向 QQ 获取的当前下载地址);资源元数据缺失或远端获取失败时返回错误。out_format 指定时附带转码后的 base64。", "returnsSchema": { "allOf": [ { "type": "object", "properties": { "file": { "type": "string", "description": "媒体地址;图片无地址时可为原文件标识" }, "url": { "type": "string", "description": "媒体下载地址,图片地址可能为空" }, "file_size": { "type": "string", "description": "原媒体字节数的十进制字符串" }, "file_name": { "type": "string", "description": "文件名或缓存标识" } }, "required": [ "file", "url", "file_size", "file_name" ] }, { "type": "object", "properties": { "out_format": { "type": "string", "enum": [ "mp3", "amr", "wma", "m4a", "spx", "ogg", "wav", "flac" ] }, "base64": { "type": "string", "description": "转换后音频的 Base64,未请求 out_format 时省略" } } } ], "description": "未转换时只有媒体信息;指定 out_format 成功转换后同时增加 out_format 和 base64,file_size 仍为原媒体大小" }, "examples": [ { "summary": "获取语音信息;传 out_format 则服务端转码并附带 base64", "params": { "file": "", "out_format": "mp3" }, "notes": "file 来自语音消息段;格式转换依赖服务端可用的转换工具,成功时增加 out_format 和 base64。" } ], "readOnly": true, "params": [ { "name": "file", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "role": "record" }, { "name": "file_id", "type": "string", "required": false, "schema": { "type": "string" }, "default": "", "role": "file_id" }, { "name": "out_format", "type": "enum", "required": false, "values": [ "mp3", "amr", "wma", "m4a", "spx", "ogg", "wav", "flac" ], "schema": { "enum": [ "mp3", "amr", "wma", "m4a", "spx", "ogg", "wav", "flac" ] } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file": { "type": "string", "default": "", "x-role": "record" }, "file_id": { "type": "string", "default": "", "x-role": "file_id" }, "out_format": { "enum": [ "mp3", "amr", "wma", "m4a", "spx", "ogg", "wav", "flac" ] } }, "additionalProperties": true }, "category": "扩展" }, { "name": "get_rkey", "aliases": [ "nc_get_rkey" ], "summary": "获取下载 rkey", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "rkey": { "type": "string", "description": "下载密钥,敏感信息" }, "type": { "type": "integer" }, "ttl": { "type": "integer", "description": "有效时长,秒" }, "create_time": { "type": "integer", "description": "创建时间,Unix 秒" } }, "required": [ "rkey", "type", "ttl", "create_time" ] } }, "examples": [ { "summary": "获取下载 rkey", "params": {}, "notes": "返回值可能包含凭据或临时下载密钥,请勿公开或记录到不受控日志。" } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "get_rkey_server", "aliases": [], "summary": "获取 rkey 服务器信息", "returns": "{ expired_time, name, private_rkey?, group_rkey? }:rkey 过期时间与(存在时的)私聊/群聊 rkey。", "returnsSchema": { "type": "object", "properties": { "expired_time": { "type": "integer", "description": "过期时间戳(秒)" }, "name": { "type": "string", "description": "服务器名(恒 SnowLuma)" }, "private_rkey": { "type": "string", "description": "私聊 rkey(存在时返回)" }, "group_rkey": { "type": "string", "description": "群聊 rkey(存在时返回)" } }, "required": [ "expired_time", "name" ] }, "examples": [ { "summary": "获取 rkey 服务器信息", "params": {}, "notes": "返回值可能包含凭据或临时下载密钥,请勿公开或记录到不受控日志。" } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "get_share_link", "aliases": [], "summary": "获取文件分享链接", "returnsSchema": { "type": "string", "description": "生成的下载或分享 URL 字符串,不是含 url 字段的对象" }, "examples": [ { "summary": "获取文件分享链接", "params": { "fileset_id": "" }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。" } ], "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` 表示已确认的收发链路健康状态;`time` 为当前账号服务实例运行秒数,与 #sl 同源。", "returnsSchema": { "type": "object", "properties": { "online": { "type": "boolean", "description": "是否在线" }, "good": { "type": "boolean", "description": "收发链路健康状态;确认接收停滞或主动请求连接失效时为 false" }, "time": { "type": "integer", "description": "当前账号服务实例运行秒数,与 #sl 同源;实例重建后重新计时" } }, "required": [ "online", "good", "time" ] }, "examples": [ { "summary": "基本调用", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "信息" }, { "name": "get_stranger_info", "aliases": [], "summary": "获取陌生人信息", "returns": "用户资料,含账号标识、等级别名和可用的注册时间、会员信息。注册时间或会员信息未返回时省略对应字段;登录天数暂无可靠来源,不返回占位值。", "returnsSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "description": "QQ 号" }, "uid": { "type": "string", "description": "账号唯一标识(仅查到资料时返回)" }, "qid": { "type": "string", "description": "自定义账号标识(仅查到资料时返回)" }, "nickname": { "type": "string", "description": "昵称" }, "remark": { "type": "string", "description": "好友备注;非好友或未设置时为空字符串" }, "sex": { "type": "string", "description": "性别(male/female/unknown)" }, "age": { "type": "integer", "description": "年龄" }, "long_nick": { "type": "string", "description": "个性签名" }, "qq_level": { "type": "integer", "description": "QQ 等级(仅查到资料时返回)" }, "qqLevel": { "type": "integer", "description": "QQ 等级,同 qq_level" }, "reg_time": { "type": "integer", "description": "注册时间戳(秒),不可用时省略" }, "is_vip": { "type": "boolean", "description": "超级会员状态,兼容 NapCat;不可用时省略" }, "is_years_vip": { "type": "boolean", "description": "年费会员状态,不可用时省略" }, "vip_level": { "type": "integer", "description": "会员等级,不可用时省略" }, "level": { "type": "integer", "description": "QQ 等级,同 qq_level(仅查到资料时返回)" }, "status": { "type": "integer", "description": "在线状态码" }, "extStatus": { "type": "integer", "description": "扩展状态码" }, "ext_status": { "type": "integer", "description": "扩展状态码(同 extStatus)" }, "batteryStatus": { "type": "integer", "description": "电量状态" }, "customStatus": { "type": "object", "description": "自定义状态", "nullable": true }, "customStatusDescInfo": { "type": "string", "description": "自定义状态说明" }, "qidian_master_flag": { "type": "integer", "description": "企点主号标志,0 或 1;普通账号为 0" }, "qidian_crew_flag": { "type": "integer", "description": "企点员工标志,0 或 1;普通账号为 0" }, "qidian_crew_flag_2": { "type": "integer", "description": "企点保留标志,0 或 1;普通账号为 0" }, "qidian_enterprise_name": { "type": "string", "description": "企点企业名称;非企点账号或未获取到时为空字符串" } }, "required": [ "user_id", "nickname", "remark", "sex", "age", "long_nick" ] }, "examples": [ { "summary": "获取陌生人信息", "params": { "user_id": 10001 }, "notes": "替换为需要查询的 QQ 号。" } ], "readOnly": true, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "QQ 号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "user_id" } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "好友" }, { "name": "get_unidirectional_friend_list", "aliases": [], "summary": "获取单向好友列表", "returnsSchema": { "type": "array", "items": { "type": "object", "additionalProperties": true, "description": "服务端列表项原样透传,目前未归一化字段,不能假定与 get_friend_list 相同" } }, "examples": [ { "summary": "获取单向好友列表", "params": {} } ], "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" ] }, "examples": [ { "summary": "基本调用", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "信息" }, { "name": "group_poke", "aliases": [], "summary": "群拍一拍", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "群拍一拍", "params": { "group_id": 20001, "user_id": 10001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint", "required": true, "role": "member_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "QQ 号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "member_id" } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "like_qzone", "aliases": [], "summary": "给一条说说点赞(QQ 空间)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "给一条说说点赞(QQ 空间)", "params": { "tid": "", "target_uin": 10001 }, "notes": "tid 来自 get_qzone_msg_list;操作需有该说说的访问或管理权限。" } ], "readOnly": false, "params": [ { "name": "tid", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "说说 tid" }, { "name": "target_uin", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "说说所属 QQ 号,省略则为机器人自己" }, { "name": "abstime", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "desc": "说说发表时间(unix 秒),传真实值更可靠", "default": 0, "role": "timestamp" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "tid": { "type": "string", "minLength": 1, "description": "说说 tid" }, "target_uin": { "type": "integer", "minimum": 1, "description": "说说所属 QQ 号,省略则为机器人自己", "x-role": "user_id" }, "abstime": { "type": "integer", "minimum": 0, "description": "说说发表时间(unix 秒),传真实值更可靠", "default": 0, "x-role": "timestamp" } }, "required": [ "tid" ], "additionalProperties": true }, "category": "空间" }, { "name": "list_filesets", "aliases": [], "summary": "列出当前账号的所有闪传文件集", "returnsSchema": { "type": "array", "items": { "type": "object", "properties": { "fileset_id": { "type": "string" }, "file_name": { "type": "string" }, "orig_name": { "type": "string" }, "size": { "type": "number", "description": "文件字节数;此接口字段名为 size" }, "share_url": { "type": "string" }, "file_id": { "type": "string" }, "download_url": { "type": "string" } }, "required": [ "fileset_id", "file_name", "orig_name", "size", "share_url", "file_id", "download_url" ] } }, "examples": [ { "summary": "列出当前账号的所有闪传文件集", "params": {} } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "mark_group_msg_as_read", "aliases": [], "summary": "标记群消息已读", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "标记群消息已读", "params": { "message_id": -123456, "group_id": 20001 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "mark_msg_as_read", "aliases": [], "summary": "标记消息已读(群聊/私聊自动路由)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "标记消息已读(群聊/私聊自动路由)", "params": { "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "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 }, "x-role": "message_id" }, "target_id": { "type": "integer", "minimum": 1 } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "mark_private_msg_as_read", "aliases": [], "summary": "标记私聊消息已读", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "标记私聊消息已读", "params": { "message_id": -123456, "user_id": 10001 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } }, { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" }, "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "modify_custom_face", "aliases": [], "summary": "修改收藏表情备注", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "修改收藏表情备注", "params": { "emoji_id": "", "desc": "常用表情" }, "notes": "emoji_id 来自 fetch_custom_face_detail。" } ], "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": "收藏表情移到最前", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "收藏表情移到最前", "params": { "emoji_id": "" }, "notes": "emoji_id 来自 fetch_custom_face_detail。" } ], "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": "移动群文件", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "移动群文件", "params": { "group_id": 20001, "file_id": "", "parent_directory": "/", "target_directory": "" }, "notes": "目录和文件标识均来自该群文件列表。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "file_id", "type": "string", "required": true, "role": "file_id", "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": "群号", "x-role": "group_id" }, "file_id": { "type": "string", "minLength": 1, "x-role": "file_id" }, "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 状态(占位)", "returns": "占位实现,恒返回 null。", "returnsSchema": { "type": "null", "description": "packet 状态(占位,恒 null)" }, "examples": [ { "summary": "获取 packet 状态(占位)", "notes": "兼容占位接口,当前始终返回 null,不提供实际收发统计。", "params": {} } ], "readOnly": true, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "nc_get_user_status", "aliases": [], "summary": "获取用户在线/扩展状态", "returns": "{ status, ext_status }:用户在线状态码与扩展状态码。", "returnsSchema": { "type": "object", "properties": { "status": { "type": "integer", "description": "在线状态码" }, "ext_status": { "type": "integer", "description": "扩展状态码" } }, "required": [ "status", "ext_status" ] }, "examples": [ { "summary": "获取用户在线/扩展状态", "params": { "user_id": 10001 }, "notes": "替换为需要查询的 QQ 号。" } ], "readOnly": true, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "ocr_image", "aliases": [ ".ocr_image" ], "summary": "OCR 图片(服务端,需图片 URL 或已缓存的图片 file_id)", "returns": "{ texts, language }:识别文本数组(含置信度与坐标)与识别语言。", "returnsSchema": { "type": "object", "properties": { "texts": { "type": "array", "description": "识别出的文本块", "items": { "type": "object", "properties": { "text": { "type": "string", "description": "文本内容" }, "confidence": { "type": "number", "description": "置信度" }, "coordinates": { "type": "array", "description": "文本框顶点坐标", "items": { "type": "object", "properties": { "x": { "type": "number", "description": "X 坐标" }, "y": { "type": "number", "description": "Y 坐标" } }, "required": [ "x", "y" ] } } }, "required": [ "text", "confidence", "coordinates" ] } }, "language": { "type": "string", "description": "识别语言" } }, "required": [ "texts", "language" ] }, "examples": [ { "summary": "OCR 图片(服务端,需图片 URL 或已缓存的图片 file_id)", "params": { "image": "https://example.com/image.png" }, "notes": "替换为实际可访问的图片地址或已缓存图片标识;不支持本地路径和 base64。" } ], "readOnly": true, "params": [ { "name": "image", "type": "string", "required": true, "role": "image", "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "image": { "type": "string", "minLength": 1, "x-role": "image" } }, "required": [ "image" ], "additionalProperties": true }, "category": "扩展" }, { "name": "rename_flash_file", "aliases": [], "summary": "重命名闪传文件", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "重命名闪传文件", "params": { "fileset_id": "", "new_name": "新资料包" }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。" } ], "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": "重命名群文件", "returnsSchema": { "type": "object", "properties": { "ok": { "const": true } }, "required": [ "ok" ] }, "examples": [ { "summary": "重命名群文件", "params": { "group_id": 20001, "file_id": "", "current_parent_directory": "/", "new_name": "新文件名.pdf" }, "notes": "file_id 来自群文件列表,目录必须是文件当前所在目录。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "file_id", "type": "string", "required": true, "role": "file_id", "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": "群号", "x-role": "group_id" }, "file_id": { "type": "string", "minLength": 1, "x-role": "file_id" }, "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": "重命名群文件夹", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "重命名群文件夹", "params": { "group_id": 20001, "folder_id": "", "new_folder_name": "课程资料" }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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": "reply_qzone_public_feed", "aliases": [], "summary": "回复推荐动态的评论或其中某条回复", "returns": "上游回复结果,包含新回复,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "回复一条评论", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "comment": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 }, "reply_attach_info": "" }, "content": "感谢回复" }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 comment 可取 get_qzone_public_feed_detail 返回的 feed.feed.cell_comment.comments,或后续评论页;保留完整对象。" }, { "summary": "回复评论中的某条回复", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "comment": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 }, "reply_attach_info": "" }, "content": [ { "type": 0, "content": "我也这么认为" } ], "reply": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 } } }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 comment 可取 get_qzone_public_feed_detail 返回的 feed.feed.cell_comment.comments,或后续评论页;保留完整对象。 reply 使用该评论下的完整回复对象。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "comment", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, { "name": "content", "type": "message", "required": true, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "非空文本,或非空上游 RichItem 对象数组;不是 OneBot 消息段" }, { "name": "reply", "type": "object", "required": false, "schema": { "type": "object", "additionalProperties": true }, "desc": "评论或回复页返回的完整回复对象,保留 user 等原始字段" } ], "invariants": [ "content must be non-empty text or a non-empty array of RichItem objects" ], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "comment": { "type": "object", "additionalProperties": true, "description": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, "content": { "description": "非空文本,或非空上游 RichItem 对象数组;不是 OneBot 消息段" }, "reply": { "type": "object", "additionalProperties": true, "description": "评论或回复页返回的完整回复对象,保留 user 等原始字段" } }, "required": [ "feed", "comment", "content" ], "additionalProperties": true }, "category": "空间" }, { "name": "request_decrypt_key", "aliases": [], "summary": "请求数据库解密密钥", "returnsSchema": { "type": "object", "properties": { "db_key": { "type": "string", "description": "数据库密钥,敏感信息" } }, "required": [ "db_key" ] }, "examples": [ { "summary": "请求数据库解密密钥", "params": { "db_path": "/path/to/account/nt_msg.db" }, "notes": "路径位于 SnowLuma 服务端,必须指向当前账号可用的数据库;返回值是敏感密钥。" } ], "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": "search_sys_faces", "aliases": [], "summary": "搜索 QQ 系统表情", "returns": "匹配编号、名称、别名或分组名的表情列表。", "returnsSchema": { "type": "object", "properties": { "faces": { "type": "array", "items": { "type": "object", "properties": { "q_sid": { "type": "string", "description": "QQ 表情目录标识(部分 emoji 为 Unicode 表情字符串)" }, "q_des": { "type": "string", "description": "表情描述" }, "em_code": { "type": "string" }, "q_cid": { "type": [ "integer", "null" ] }, "ani_sticker_type": { "type": [ "integer", "null" ] }, "ani_sticker_pack_id": { "type": [ "integer", "null" ] }, "ani_sticker_id": { "type": [ "integer", "null" ] }, "url": { "type": [ "string", "null" ] }, "emoji_name_alias": { "type": "array", "items": { "type": "string" } }, "ani_sticker_width": { "type": [ "integer", "null" ] }, "ani_sticker_height": { "type": [ "integer", "null" ] }, "is_super": { "type": "boolean", "description": "是否使用超级表情格式" } }, "required": [ "q_sid", "q_des", "em_code", "q_cid", "ani_sticker_type", "ani_sticker_pack_id", "ani_sticker_id", "url", "emoji_name_alias", "ani_sticker_width", "ani_sticker_height", "is_super" ] } } }, "required": [ "faces" ] }, "examples": [ { "summary": "搜索 QQ 系统表情", "params": { "query": "微笑" } } ], "readOnly": true, "params": [ { "name": "query", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "编号、名称、别名或分组名" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "minLength": 1, "description": "编号、名称、别名或分组名" } }, "required": [ "query" ], "additionalProperties": true }, "category": "系统表情" }, { "name": "send_ark_share", "aliases": [], "summary": "分享用户/群 Ark 卡片(NapCat 标准名)", "returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。", "returnsSchema": { "type": "object", "properties": { "arkMsg": { "type": "string", "description": "Ark 卡片 JSON 字符串" } }, "required": [ "arkMsg" ] }, "examples": [ { "summary": "分享用户/群 Ark 卡片(NapCat 标准名)", "params": { "user_id": 10001 }, "notes": "生成联系人分享卡片;返回卡片数据,不等同于发送到聊天。" } ], "readOnly": true, "params": [ { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "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, "x-role": "user_id" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "phone_number": { "type": "string", "default": "" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "send_custom_face", "aliases": [], "summary": "发送账号收藏表情(emoji_id 或 MD5),保留表情显示样式", "returns": "{ message_id: number }", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "发送账号收藏表情(emoji_id 或 MD5),保留表情显示样式", "params": { "group_id": 20001, "emoji_id": "" }, "notes": "群聊和私聊目标只能提供一个;emoji_id 来自 fetch_custom_face_detail。" } ], "readOnly": false, "params": [ { "name": "emoji_id", "type": "string", "required": true, "schema": { "type": "string" }, "desc": "当前账号收藏表情的完整 ID 或 32 位 MD5" }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "目标群号;与 user_id 二选一" }, { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "目标 QQ 号;与 group_id 二选一" }, { "name": "reply_to", "type": "messageId", "required": false, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } }, "desc": "可选回复消息 ID" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "emoji_id": { "type": "string", "description": "当前账号收藏表情的完整 ID 或 32 位 MD5" }, "group_id": { "type": "integer", "minimum": 1, "description": "目标群号;与 user_id 二选一", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "目标 QQ 号;与 group_id 二选一", "x-role": "user_id" }, "reply_to": { "type": "integer", "not": { "const": 0 }, "description": "可选回复消息 ID", "x-role": "message_id" } }, "required": [ "emoji_id" ], "additionalProperties": true }, "category": "消息" }, { "name": "send_flash_msg", "aliases": [], "summary": "发送闪传消息(私聊或群聊,引用 fileset_id 让对端下载)", "returns": "{ message_id }", "returnsSchema": { "type": "object", "properties": { "message_id": { "const": 0, "description": "闪传分享不返回普通消息 ID,0 是占位值,不能用于查询或撤回" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "发送闪传消息(私聊或群聊,引用 fileset_id 让对端下载)", "params": { "fileset_id": "", "user_id": 10001 }, "notes": "fileset_id 来自 create_flash_task、get_fileset_id 或 list_filesets,替换为当前账号可访问的文件集。 会发送分享消息;message_id=0 是占位值,不能用于撤回或查消息。" } ], "readOnly": false, "params": [ { "name": "fileset_id", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "fileset_id": { "type": "string", "minLength": 1 }, "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "required": [ "fileset_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "send_forward_msg", "aliases": [], "summary": "发送合并转发(按 message_type/群号自动路由)", "returns": "{ message_id, res_id, forward_id }", "returnsSchema": { "type": "object", "properties": { "message_id": { "anyOf": [ { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, { "const": 0 } ], "description": "已发送时是非零有符号消息 ID;未提供目标、仅上传资源时为 0" }, "res_id": { "type": "string" }, "forward_id": { "type": "string" } }, "required": [ "message_id", "res_id", "forward_id" ] }, "examples": [ { "summary": "发送合并转发(按 message_type/群号自动路由)", "params": { "group_id": 20001, "messages": [ { "type": "node", "data": { "user_id": 10001, "nickname": "示例用户", "content": [ { "type": "text", "data": { "text": "转发内容" } } ] } } ] }, "notes": "替换目标群号;nodes 是自定义转发节点数组。send_forward_msg 不提供目标时仅上传资源并返回 message_id=0。" } ], "readOnly": false, "params": [ { "name": "messages", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "message", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "message_type", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "group_id", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 } }, { "name": "user_id", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 } }, { "name": "source", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "summary", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "prompt", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "news", "type": "raw", "required": false, "schema": {} } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "messages": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "message": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "message_type": { "type": "string" }, "group_id": { "type": "integer", "minimum": 0 }, "user_id": { "type": "integer", "minimum": 0 }, "source": { "type": "string" }, "summary": { "type": "string" }, "prompt": { "type": "string" }, "news": {} }, "additionalProperties": true }, "category": "扩展" }, { "name": "send_group_ai_record", "aliases": [], "summary": "发送 AI 语音到群", "returns": "{ message_id }:已发送 AI 语音的 OneBot 消息 ID。", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "发送 AI 语音到群", "params": { "group_id": 20001, "character": "", "text": "你好", "chat_type": 1 }, "notes": "character 原样使用 get_ai_characters 的 character_id;send_group_ai_record 会直接发送语音。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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 标准名)", "returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。", "returnsSchema": { "type": "string", "description": "群 Ark 卡片 JSON 字符串" }, "examples": [ { "summary": "分享群 Ark 卡片(NapCat 标准名)", "params": { "group_id": 20001 }, "notes": "生成群分享卡片;返回卡片数据,不等同于发送到聊天。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "send_group_forward_msg", "aliases": [], "summary": "发送群合并转发", "returns": "{ message_id, res_id, forward_id }", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, "res_id": { "type": "string" }, "forward_id": { "type": "string" } }, "required": [ "message_id", "res_id", "forward_id" ] }, "examples": [ { "summary": "发送群合并转发", "params": { "group_id": 20001, "messages": [ { "type": "node", "data": { "user_id": 10001, "nickname": "示例用户", "content": [ { "type": "text", "data": { "text": "转发内容" } } ] } } ] }, "notes": "替换目标群号;nodes 是自定义转发节点数组。send_forward_msg 不提供目标时仅上传资源并返回 message_id=0。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "messages", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "message", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "source", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "summary", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "prompt", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "news", "type": "raw", "required": false, "schema": {} } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "messages": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "message": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "source": { "type": "string" }, "summary": { "type": "string" }, "prompt": { "type": "string" }, "news": {} }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "send_group_msg", "aliases": [], "summary": "发送群消息", "returns": "{ message_id: number }", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "发送群消息", "params": { "group_id": 20001, "message": [ { "type": "text", "data": { "text": "你好" } } ] }, "notes": "替换目标群号;成功返回的 message_id 可为负值。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "message", "type": "message", "required": true, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." } }, { "name": "auto_escape", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "message": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "auto_escape": { "type": "boolean", "default": false } }, "required": [ "group_id", "message" ], "additionalProperties": true }, "category": "消息" }, { "name": "send_like", "aliases": [], "summary": "点赞", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "点赞", "params": { "user_id": 10001, "times": 1 } } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "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, "x-role": "user_id" }, "times": { "type": "integer", "minimum": 0, "default": 1 } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "send_msg", "aliases": [], "summary": "发送消息(按 message_type/群号 自动路由群聊或私聊)", "returns": "{ message_id: number }", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "发送消息(按 message_type/群号 自动路由群聊或私聊)", "params": { "message_type": "group", "group_id": 20001, "message": "你好" }, "notes": "必须提供对应目标;私聊使用 message_type=private 和 user_id。" } ], "readOnly": false, "params": [ { "name": "message", "type": "message", "required": true, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." } }, { "name": "message_type", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "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. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "message_type": { "type": "string" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "auto_escape": { "type": "boolean", "default": false } }, "required": [ "message" ], "additionalProperties": true }, "category": "消息" }, { "name": "send_packet", "aliases": [ ".send_packet" ], "summary": "发送原始 SSO 包(cmd + hex data)", "returnsSchema": { "anyOf": [ { "type": "string", "description": "rsp=true 时返回的十六进制响应正文" }, { "type": "null", "description": "rsp=false 时不等待响应,data 为 null" } ] }, "examples": [ { "summary": "发送原始 SSO 包(cmd + hex data)", "params": { "cmd": "", "data": "", "rsp": true }, "notes": "仅供有协议经验的调用方:cmd 和 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": "拍一拍(群聊/私聊自动路由)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "拍一拍(群聊/私聊自动路由)", "params": { "group_id": 20001, "user_id": 10001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "send_private_forward_msg", "aliases": [], "summary": "发送私聊合并转发", "returns": "{ message_id, res_id, forward_id }", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" }, "res_id": { "type": "string" }, "forward_id": { "type": "string" } }, "required": [ "message_id", "res_id", "forward_id" ] }, "examples": [ { "summary": "发送私聊合并转发", "params": { "user_id": 10001, "messages": [ { "type": "node", "data": { "user_id": 10001, "nickname": "示例用户", "content": [ { "type": "text", "data": { "text": "转发内容" } } ] } } ] }, "notes": "替换目标好友 QQ 号。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "messages", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "message", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "source", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "summary", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "prompt", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "news", "type": "raw", "required": false, "schema": {} } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "messages": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "message": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "source": { "type": "string" }, "summary": { "type": "string" }, "prompt": { "type": "string" }, "news": {} }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "send_private_msg", "aliases": [], "summary": "发送私聊消息", "returns": "{ message_id: number }", "returnsSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647, "not": { "const": 0 }, "description": "非零有符号 32 位消息 ID,负值合法;必须原样保留" } }, "required": [ "message_id" ] }, "examples": [ { "summary": "发送私聊消息", "params": { "user_id": 10001, "message": "你好" }, "notes": "替换目标好友 QQ 号;临时会话需另传来源 group_id。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "message", "type": "message", "required": true, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." } }, { "name": "group_id", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 } }, { "name": "auto_escape", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "message": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "group_id": { "type": "integer", "minimum": 0 }, "auto_escape": { "type": "boolean", "default": false } }, "required": [ "user_id", "message" ], "additionalProperties": true }, "category": "消息" }, { "name": "send_qzone_msg", "aliases": [], "summary": "发表说说(QQ 空间,支持纯文字或带图;传 images 自动上传;可设置查看权限)", "returnsSchema": { "type": "object", "properties": { "tid": { "type": "string" }, "time": { "type": "integer" } }, "required": [ "tid", "time" ] }, "examples": [ { "summary": "发表说说(QQ 空间,支持纯文字或带图;传 images 自动上传;可设置查看权限)", "params": { "content": "今天的学习记录", "ugc_right": 64 }, "notes": "会发布说说;ugc_right=64 仅自己可见。16/128 还必须提供 target_uins。" } ], "readOnly": false, "params": [ { "name": "content", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "说说正文" }, { "name": "images", "type": "string[]", "required": false, "schema": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "desc": "图片数组(可选),支持 file:// http:// base64://;自动上传" }, { "name": "ugc_right", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1 }, "desc": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见", "default": 1 }, { "name": "target_uins", "type": "uint[]", "required": false, "schema": { "type": "array", "items": { "type": "integer", "minimum": 1 } }, "desc": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单" } ], "invariants": [ "ugc_right must be one of 1, 4, 16, 64, 128", "target_uins is required when ugc_right is 16 or 128" ], "inputSchema": { "type": "object", "properties": { "content": { "type": "string", "minLength": 1, "description": "说说正文" }, "images": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "图片数组(可选),支持 file:// http:// base64://;自动上传" }, "ugc_right": { "type": "integer", "minimum": 1, "description": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见", "default": 1 }, "target_uins": { "type": "array", "items": { "type": "integer", "minimum": 1 }, "description": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单" } }, "required": [ "content" ], "additionalProperties": true }, "category": "空间" }, { "name": "send_tuwen_ark", "aliases": [], "summary": "发送图文 Ark 卡片(私聊/群聊)", "returns": "null", "returnsSchema": { "type": "null" }, "examples": [ { "summary": "发送图文 Ark 卡片(私聊/群聊)", "params": { "group_id": 20001, "title": "学习资料", "desc": "本周课程资料", "jump_url": "https://example.com/course", "preview_url": "https://example.com/cover.png" }, "notes": "替换目标群号及实际链接;会发送分享卡片。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "title", "type": "string", "required": true, "schema": { "type": "string" } }, { "name": "desc", "type": "string", "required": true, "schema": { "type": "string" } }, { "name": "summary", "type": "string", "required": false, "schema": { "type": "string" }, "default": "[分享]" }, { "name": "preview_url", "type": "string", "required": false, "schema": { "type": "string" }, "default": "https://tangram-1251316161.file.myqcloud.com/files/20210721/e50a8e37e08f29bf1ffc7466e1950690.png" }, { "name": "jump_url", "type": "string", "required": true, "schema": { "type": "string" } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "x-role": "user_id" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "title": { "type": "string" }, "desc": { "type": "string" }, "summary": { "type": "string", "default": "[分享]" }, "preview_url": { "type": "string", "default": "https://tangram-1251316161.file.myqcloud.com/files/20210721/e50a8e37e08f29bf1ffc7466e1950690.png" }, "jump_url": { "type": "string" } }, "required": [ "title", "desc", "jump_url" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_diy_online_status", "aliases": [], "summary": "设置自定义在线状态", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置自定义在线状态", "params": { "face_id": 14, "face_type": 1, "wording": "学习中" } } ], "readOnly": false, "params": [ { "name": "face_id", "type": "int", "required": true, "role": "face_id", "schema": { "type": "integer", "minimum": 0 } }, { "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": 0, "x-role": "face_id" }, "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": "处理可疑好友申请", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "处理可疑好友申请", "params": { "flag": "", "approve": true }, "notes": "flag 使用 get_doubt_friends_add_request 返回项的 uid。" } ], "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": "设置精华消息", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置精华消息", "params": { "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_friend_add_request", "aliases": [], "summary": "处理好友添加请求", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "处理好友添加请求", "params": { "flag": "", "approve": true }, "notes": "flag 必须原样使用当前账号好友请求事件的 flag,不能根据 QQ 号构造。" } ], "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": "设置好友备注", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置好友备注", "params": { "user_id": 10001, "remark": "同学" } } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "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, "x-role": "user_id" }, "remark": { "type": "string" } }, "required": [ "user_id", "remark" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_friends_category", "aliases": [], "summary": "移动好友到指定分组", "returns": "成功时返回空数据。", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "移动好友到指定分组", "params": { "uin": 10001, "categoryName": "同学" }, "notes": "categoryId 与 categoryName 二选一。" } ], "readOnly": false, "params": [ { "name": "uin", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "要移动的好友 QQ 号" }, { "name": "categoryId", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "desc": "目标分组 ID" }, { "name": "categoryName", "type": "string", "required": false, "schema": { "type": "string", "minLength": 1 }, "desc": "目标分组名称(必须唯一且完全匹配)" } ], "invariants": [ "exactly one of: categoryId | categoryName" ], "inputSchema": { "type": "object", "properties": { "uin": { "type": "integer", "minimum": 1, "description": "要移动的好友 QQ 号", "x-role": "user_id" }, "categoryId": { "type": "integer", "minimum": 0, "description": "目标分组 ID" }, "categoryName": { "type": "string", "minLength": 1, "description": "目标分组名称(必须唯一且完全匹配)" } }, "required": [ "uin" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_group_add_option", "aliases": [], "summary": "设置加群选项", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置加群选项", "params": { "group_id": 20001, "add_type": 2, "group_question": "入群用途?", "group_answer": "学习交流" }, "notes": "修改加群设置前先用 get_group_admin_settings 查看当前状态,并确认目标设置值。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "add_type", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "default": 0 }, { "name": "group_question", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "group_answer", "type": "string", "required": false, "schema": { "type": "string" } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "add_type": { "type": "integer", "minimum": 0, "default": 0 }, "group_question": { "type": "string" }, "group_answer": { "type": "string" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_add_request", "aliases": [], "summary": "处理加群请求", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "处理加群请求", "params": { "flag": "", "sub_type": "add", "approve": true }, "notes": "flag 和 sub_type 原样取自同一条群请求事件;邀请事件使用 invite。" } ], "readOnly": false, "params": [ { "name": "flag", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 } }, { "name": "sub_type", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "type", "type": "string", "required": false, "schema": { "type": "string" } }, { "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": "string" }, "type": { "type": "string" }, "approve": { "type": "boolean", "default": true }, "reason": { "type": "string", "default": "" } }, "required": [ "flag" ], "additionalProperties": true }, "category": "请求" }, { "name": "set_group_admin", "aliases": [], "summary": "设置/取消管理员", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置/取消管理员", "params": { "group_id": 20001, "user_id": 10001, "enable": true }, "notes": "需要群主权限;会授予该成员管理员身份。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint", "required": true, "role": "member_id", "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": "群号", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "member_id" }, "enable": { "type": "boolean", "default": true } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_album_media_like", "aliases": [], "returnsSchema": { "type": "object", "properties": { "id": { "type": [ "string", "null" ] }, "status": { "type": [ "integer", "null" ] } } }, "examples": [ { "summary": "基本调用", "params": { "group_id": 20001, "album_id": "", "batch_id": "1700000000" }, "notes": "album_id 来自 get_group_album_list;lloc 或视频 id、batch_id 来自 get_group_album_media_list。替换群号及对应资源标识。 batch_id 必须是实际批次的十进制字符串。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "匿名开关(未实现,返回 ok)", "params": {}, "notes": "兼容占位接口:当前返回成功但不会修改匿名设置。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_anonymous_ban", "aliases": [], "summary": "匿名禁言(未实现,返回 ok)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "匿名禁言(未实现,返回 ok)", "params": {}, "notes": "兼容占位接口:当前返回成功但不会修改匿名设置。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_ban", "aliases": [], "summary": "禁言群成员(duration=0 解除)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "禁言群成员(duration=0 解除)", "params": { "group_id": 20001, "user_id": 10001, "duration": 600 }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。 duration 为秒,0 表示解除禁言。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint", "required": true, "role": "member_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "QQ 号" }, { "name": "duration", "type": "int", "required": false, "role": "duration", "schema": { "type": "integer", "minimum": 0 }, "default": 1800 } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "member_id" }, "duration": { "type": "integer", "minimum": 0, "default": 1800, "x-role": "duration" } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_card", "aliases": [], "summary": "设置群名片(空字符串清除)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群名片(空字符串清除)", "params": { "group_id": 20001, "user_id": 10001, "card": "示例群名片" }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint", "required": true, "role": "member_id", "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": "群号", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "member_id" }, "card": { "type": "string", "default": "" } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_kick", "aliases": [], "summary": "踢出群成员", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "踢出群成员", "params": { "group_id": 20001, "user_id": 10001, "reject_add_request": false }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint", "required": true, "role": "member_id", "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": "群号", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "member_id" }, "reject_add_request": { "type": "boolean", "default": false } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_kick_members", "aliases": [], "summary": "批量踢出群成员", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "批量踢出群成员", "params": { "group_id": 20001, "user_id": [ 10001, 10002 ], "reject_add_request": false }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint[]", "required": true, "schema": { "type": "array", "items": { "type": "integer", "minimum": 1, "x-role": "member_id" }, "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": "群号", "x-role": "group_id" }, "user_id": { "type": "array", "items": { "type": "integer", "minimum": 1, "x-role": "member_id" }, "minItems": 1 }, "reject_add_request": { "type": "boolean", "default": false } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_leave", "aliases": [], "summary": "退群", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "退群", "params": { "group_id": 20001 }, "notes": "会退出该群,请确认目标群号后调用。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_member_invite_policy", "aliases": [], "summary": "设置群成员邀请策略", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群成员邀请策略", "params": { "group_id": 20001, "policy": "require_approval" }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "policy", "type": "enum", "required": true, "values": [ "disabled", "require_approval", "no_approval", "no_approval_under_100" ], "schema": { "enum": [ "disabled", "require_approval", "no_approval", "no_approval_under_100" ] } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "policy": { "enum": [ "disabled", "require_approval", "no_approval", "no_approval_under_100" ] } }, "required": [ "group_id", "policy" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_member_permissions", "aliases": [], "summary": "设置群成员权限(仅群主可改)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群成员权限(仅群主可改)", "params": { "group_id": 20001, "allow_member_upload_album": false }, "notes": "至少传一个权限字段;仅修改传入的权限,其余保持原样。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "allow_member_upload_album", "type": "bool", "required": false, "schema": { "type": "boolean" } }, { "name": "allow_member_temporary_session", "type": "bool", "required": false, "schema": { "type": "boolean" } }, { "name": "allow_member_create_group", "type": "bool", "required": false, "schema": { "type": "boolean" } } ], "invariants": [ "at least one of: allow_member_upload_album, allow_member_temporary_session, allow_member_create_group" ], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "allow_member_upload_album": { "type": "boolean" }, "allow_member_temporary_session": { "type": "boolean" }, "allow_member_create_group": { "type": "boolean" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_name", "aliases": [], "summary": "设置群名", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群名", "params": { "group_id": 20001, "group_name": "学习交流群" }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "group_name": { "type": "string", "default": "" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_new_member_history_visibility", "aliases": [], "summary": "设置新成员是否可查看历史消息", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置新成员是否可查看历史消息", "params": { "group_id": 20001, "visible": true }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "visible", "type": "bool", "required": true, "schema": { "type": "boolean" } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "visible": { "type": "boolean" } }, "required": [ "group_id", "visible" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_portrait", "aliases": [], "summary": "设置群头像", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群头像", "params": { "group_id": 20001, "file": "file:///path/to/avatar.png" }, "notes": "示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "file", "type": "string", "required": true, "role": "image", "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "file": { "type": "string", "minLength": 1, "x-role": "image" } }, "required": [ "group_id", "file" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_reaction", "aliases": [], "summary": "群聊表情回应", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "群聊表情回应", "params": { "message_id": -123456, "group_id": 20001, "code": "128077", "is_set": true }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "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, "x-role": "group_id" }, "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" }, "code": { "type": "string", "minLength": 1 }, "is_set": { "type": "boolean", "default": true } }, "required": [ "message_id", "code" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_group_remark", "aliases": [], "summary": "设置群备注", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群备注", "params": { "group_id": 20001, "remark": "学习小组" }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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, "x-role": "group_id" }, "remark": { "type": "string" } }, "required": [ "group_id", "remark" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_group_robot_add_option", "aliases": [], "summary": "设置群机器人加群选项", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群机器人加群选项", "params": { "group_id": 20001, "robot_member_switch": 1, "robot_member_examine": 1 }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "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": "设置群被搜索方式(群指纹 / 群号搜索开关)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群被搜索方式(群指纹 / 群号搜索开关)", "params": { "group_id": 20001, "no_finger_open": 0, "no_code_finger_open": 0 }, "notes": "替换群号;数值含义以当前群设置为准。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "no_finger_open", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 } }, { "name": "no_code_finger_open", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "no_finger_open": { "type": "integer", "minimum": 0 }, "no_code_finger_open": { "type": "integer", "minimum": 0 } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_sign", "aliases": [ "send_group_sign" ], "summary": "群签到", "returnsSchema": { "type": "object", "properties": {}, "additionalProperties": false, "description": "成功时为空对象 {},不是 null" }, "examples": [ { "summary": "群签到", "params": { "group_id": 20001 }, "notes": "将 group_id 替换为当前账号可访问的群号。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_group_special_title", "aliases": [], "summary": "设置群头衔", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群头衔", "params": { "group_id": 20001, "user_id": 10001, "special_title": "学习委员" }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "user_id", "type": "uint", "required": true, "role": "member_id", "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": "群号", "x-role": "group_id" }, "user_id": { "type": "integer", "minimum": 1, "description": "QQ 号", "x-role": "member_id" }, "special_title": { "type": "string", "default": "" } }, "required": [ "group_id", "user_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_group_todo", "aliases": [], "summary": "设置群待办", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置群待办", "params": { "group_id": 20001, "message_id": -123456 }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。 必须是该群的消息。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "schema": { "type": "integer", "not": { "const": 0 } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "message_id": { "type": "integer", "not": { "const": 0 }, "x-role": "message_id" } }, "required": [ "group_id", "message_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_group_whole_ban", "aliases": [], "summary": "全员禁言开关", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "全员禁言开关", "params": { "group_id": 20001, "enable": true }, "notes": "替换群号和成员 QQ 号;操作是否允许取决于当前账号在该群的权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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": "群号", "x-role": "group_id" }, "enable": { "type": "boolean", "default": true } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "群管理" }, { "name": "set_input_status", "aliases": [], "summary": "设置输入状态", "returnsSchema": { "type": "object", "properties": {}, "additionalProperties": false, "description": "成功时为空对象 {},不是 null" }, "examples": [ { "summary": "设置输入状态", "params": { "user_id": 10001, "event_type": 0 } } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "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, "x-role": "user_id" }, "event_type": { "type": "integer", "default": 0 } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_msg_emoji_like", "aliases": [], "summary": "设置消息表情回应", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置消息表情回应", "params": { "message_id": -123456, "emoji_id": "128077", "set": true }, "notes": "使用消息事件或发送结果中的真实 message_id,负值合法;消息须在当前账号的消息存储中可查询。" } ], "readOnly": false, "params": [ { "name": "message_id", "type": "messageId", "required": true, "role": "message_id", "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 }, "x-role": "message_id" }, "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": "设置在线状态", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置在线状态", "params": { "status": 11, "ext_status": 0, "battery_status": 100 }, "notes": "修改当前账号状态;具体状态码须与目标状态对应。" } ], "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 头像", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置 QQ 头像", "params": { "file": "file:///path/to/avatar.png" }, "notes": "示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。" } ], "readOnly": false, "params": [ { "name": "file", "type": "string", "required": true, "role": "image", "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "file": { "type": "string", "minLength": 1, "x-role": "image" } }, "required": [ "file" ], "additionalProperties": true }, "category": "扩展" }, { "name": "set_qq_profile", "aliases": [], "summary": "设置 QQ 资料", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "设置 QQ 资料", "params": { "nickname": "示例昵称" }, "notes": "会修改当前账号的资料;只传入需要修改的字段。" } ], "readOnly": false, "params": [ { "name": "nickname", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "personal_note", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "sex", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0, "maximum": 2 }, "desc": "0 未知,1 男,2 女" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "nickname": { "type": "string" }, "personal_note": { "type": "string" }, "sex": { "type": "integer", "minimum": 0, "maximum": 2, "description": "0 未知,1 男,2 女" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "set_qzone_ban", "aliases": [], "summary": "拉黑或解除拉黑某人(修改机器人自身 QQ 空间黑名单;enable=true 拉黑,false 解除)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "拉黑或解除拉黑某人(修改机器人自身 QQ 空间黑名单;enable=true 拉黑,false 解除)", "params": { "user_id": 10001, "enable": true }, "notes": "修改当前账号空间黑名单。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "目标 QQ 号" }, { "name": "enable", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "true 拉黑,false 解除拉黑", "default": true } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "user_id": { "type": "integer", "minimum": 1, "description": "目标 QQ 号", "x-role": "user_id" }, "enable": { "type": "boolean", "description": "true 拉黑,false 解除拉黑", "default": true } }, "required": [ "user_id" ], "additionalProperties": true }, "category": "空间" }, { "name": "set_qzone_msg_right", "aliases": [], "summary": "修改一条已发说说的查看权限(QQ 空间,按 tid)", "returns": "更新后的权限对象。", "returnsSchema": { "type": "object", "properties": { "ugc_right": { "type": "integer", "description": "更新后的查看权限" } }, "required": [ "ugc_right" ] }, "examples": [ { "summary": "修改一条已发说说的查看权限(QQ 空间,按 tid)", "params": { "tid": "", "ugc_right": 16, "target_uins": [ 10001 ] }, "notes": "tid 来自 get_qzone_msg_list;操作需有该说说的访问或管理权限。 16 表示仅所选好友可见。" } ], "readOnly": false, "params": [ { "name": "tid", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)" }, { "name": "ugc_right", "type": "int", "required": true, "schema": { "type": "integer", "minimum": 1 }, "desc": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见" }, { "name": "target_uins", "type": "uint[]", "required": false, "schema": { "type": "array", "items": { "type": "integer", "minimum": 1 } }, "desc": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单" } ], "invariants": [ "ugc_right must be one of 1, 4, 16, 64, 128", "target_uins is required when ugc_right is 16 or 128" ], "inputSchema": { "type": "object", "properties": { "tid": { "type": "string", "minLength": 1, "description": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)" }, "ugc_right": { "type": "integer", "minimum": 1, "description": "查看权限:1=所有人可见,4=好友可见,16=部分好友可见,64=仅自己可见,128=部分好友不可见" }, "target_uins": { "type": "array", "items": { "type": "integer", "minimum": 1 }, "description": "权限作用 QQ 号数组;ugc_right=16 时表示可见名单,128 时表示不可见名单" } }, "required": [ "tid", "ugc_right" ], "additionalProperties": true }, "category": "空间" }, { "name": "set_qzone_profile", "aliases": [], "summary": "修改当前账号的 QQ 空间名称或说明", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "修改当前账号的空间名称和说明", "params": { "name": "我的空间", "description": "记录日常" }, "notes": "仅修改提供的字段;空字符串表示清空对应字段。" }, { "summary": "清空当前账号的空间说明", "params": { "description": "" } } ], "readOnly": false, "params": [ { "name": "name", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "新的空间名称,空字符串表示清空,省略则保留" }, { "name": "description", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "新的空间说明,空字符串表示清空,省略则保留" } ], "invariants": [ "at least one of: name, description" ], "inputSchema": { "type": "object", "properties": { "name": { "type": "string", "description": "新的空间名称,空字符串表示清空,省略则保留" }, "description": { "type": "string", "description": "新的空间说明,空字符串表示清空,省略则保留" } }, "additionalProperties": true }, "category": "空间" }, { "name": "set_qzone_public_comment_like", "aliases": [], "summary": "点赞或取消赞推荐动态中的评论或回复", "returns": "上游普通赞操作结果,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "点赞一条评论", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "comment": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 }, "reply_attach_info": "" } }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 comment 可取 get_qzone_public_feed_detail 返回的 feed.feed.cell_comment.comments,或后续评论页;保留完整对象。 必须保留评论原始 like.id。" }, { "summary": "取消赞某条回复", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "comment": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 }, "reply_attach_info": "" }, "reply": { "id": "", "user": { "uin": "", "uid": "", "nick": "" }, "like": { "id": "", "count": 0, "status": 0 } }, "enable": false }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 reply 使用该评论下的完整回复对象,保留其原始 like.id。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "comment", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, { "name": "enable", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "true 点赞,false 取消赞", "default": true }, { "name": "reply", "type": "object", "required": false, "schema": { "type": "object", "additionalProperties": true }, "desc": "评论或回复页返回的完整回复对象,保留 user 等原始字段" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "comment": { "type": "object", "additionalProperties": true, "description": "详情或评论页返回的完整评论对象,保留 user 等原始字段" }, "enable": { "type": "boolean", "description": "true 点赞,false 取消赞", "default": true }, "reply": { "type": "object", "additionalProperties": true, "description": "评论或回复页返回的完整回复对象,保留 user 等原始字段" } }, "required": [ "feed", "comment" ], "additionalProperties": true }, "category": "空间" }, { "name": "set_qzone_public_follow", "aliases": [], "summary": "蹲或取消蹲推荐动态作者", "returns": "上游关系操作结果,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "蹲这条推荐动态的作者", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "enable": true }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。 feed 需保留作者 cell_user_info。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "enable", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "true 蹲,false 取消蹲", "default": true } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "enable": { "type": "boolean", "description": "true 蹲,false 取消蹲", "default": true } }, "required": [ "feed" ], "additionalProperties": true }, "category": "空间" }, { "name": "set_qzone_public_like", "aliases": [], "summary": "点赞或取消赞推荐动态", "returns": "上游普通赞操作结果,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "点赞推荐动态", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "enable": true }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "enable", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "true 点赞,false 取消赞", "default": true } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "enable": { "type": "boolean", "description": "true 点赞,false 取消赞", "default": true } }, "required": [ "feed" ], "additionalProperties": true }, "category": "空间" }, { "name": "set_qzone_public_upvote", "aliases": [], "summary": "推或取消推空友爱看动态(独立于普通赞)", "returns": "上游推操作结果,保留未知字段。", "returnsSchema": { "type": "object", "additionalProperties": true }, "examples": [ { "summary": "推一条推荐动态", "params": { "feed": { "cell_common": { "union_id": { "uf_key": "", "ugc_id": "", "feed_id": "", "ext_ids": [] }, "cur_like_key": "", "domain_type": 3 }, "cell_feed_transfer": {}, "cell_user_info": { "user": { "uin": "10001", "uid": "", "nick": "" } } }, "enable": true }, "notes": "feed 必须原样取自 get_qzone_public_feeds 的 feeds 数组,不能用旧说说 tid 拼造;示例中的占位字段须整体替换。" } ], "readOnly": false, "params": [ { "name": "feed", "type": "object", "required": true, "schema": { "type": "object", "additionalProperties": true }, "desc": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, { "name": "enable", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "true 推,false 取消推", "default": true } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "feed": { "type": "object", "additionalProperties": true, "description": "get_qzone_public_feeds 返回的完整 feeds 条目,保留所有原始 cell 字段" }, "enable": { "type": "boolean", "description": "true 推,false 取消推", "default": true } }, "required": [ "feed" ], "additionalProperties": true }, "category": "空间" }, { "name": "set_restart", "aliases": [], "summary": "重启(不支持)", "returnsSchema": { "not": {}, "description": "当前始终返回失败,没有成功 data;失败响应 data 为 null,原因见 wording" }, "examples": [ { "summary": "重启(不支持)", "params": {}, "notes": "当前未实现,调用返回失败;不要将其当作可用能力。" } ], "readOnly": false, "params": [], "invariants": [], "inputSchema": { "type": "object", "properties": {}, "additionalProperties": true }, "category": "扩展" }, { "name": "set_self_longnick", "aliases": [], "summary": "设置个性签名(longNick/long_nick,严格 string)", "returnsSchema": { "type": "object", "properties": {}, "additionalProperties": false, "description": "成功时为空对象 {},不是 null" }, "examples": [ { "summary": "设置个性签名(longNick/long_nick,严格 string)", "params": { "long_nick": "学习中" } } ], "readOnly": false, "params": [ { "name": "longNick", "type": "string", "required": false, "schema": { "type": "string" } }, { "name": "long_nick", "type": "string", "required": false, "schema": { "type": "string" } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "longNick": { "type": "string" }, "long_nick": { "type": "string" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "share_group_ex", "aliases": [], "summary": "分享群 Ark 卡片", "returns": "服务端生成的群推荐 Ark 卡片 JSON 字符串。", "returnsSchema": { "type": "string", "description": "群 Ark 卡片 JSON 字符串" }, "examples": [ { "summary": "分享群 Ark 卡片", "params": { "group_id": 20001 }, "notes": "生成群分享卡片;返回卡片数据,不等同于发送到聊天。" } ], "readOnly": true, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "required": [ "group_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "share_peer", "aliases": [], "summary": "分享用户/群 Ark 卡片", "returns": "{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。", "returnsSchema": { "type": "object", "properties": { "arkMsg": { "type": "string", "description": "Ark 卡片 JSON 字符串" } }, "required": [ "arkMsg" ] }, "examples": [ { "summary": "分享用户/群 Ark 卡片", "params": { "user_id": 10001 }, "notes": "生成联系人分享卡片;返回卡片数据,不等同于发送到聊天。" } ], "readOnly": true, "params": [ { "name": "user_id", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "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, "x-role": "user_id" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "phone_number": { "type": "string", "default": "" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "test_download_stream", "aliases": [], "summary": "测试下载流(推送 10 个数据帧,验证流式传输,不触达 QQ)", "returns": "流式帧:data_chunk*10 → data_complete(error=true 时以 error 帧结束)", "returnsSchema": { "oneOf": [ { "type": "object", "properties": { "type": { "const": "stream" }, "data_type": { "const": "data_chunk" }, "data": { "type": "string" } }, "required": [ "type", "data_type", "data" ] }, { "type": "object", "properties": { "type": { "const": "response" }, "data_type": { "const": "data_complete" }, "data": { "type": "string" } }, "required": [ "type", "data_type", "data" ] } ], "description": "成功时 10 个 data_chunk 后接 data_complete;error=true 时最终为失败帧" }, "examples": [ { "summary": "测试下载流(推送 10 个数据帧,验证流式传输,不触达 QQ)", "params": { "error": false }, "notes": "经 invoke_action 调用,仅测试传输,不访问 QQ。" } ], "readOnly": false, "params": [ { "name": "error", "type": "bool", "required": false, "schema": { "type": "boolean" }, "default": false, "desc": "是否触发测试错误" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "error": { "type": "boolean", "description": "是否触发测试错误", "default": false } }, "additionalProperties": true }, "stream": true, "category": "流式接口" }, { "name": "trans_group_file", "aliases": [], "summary": "转存群文件", "returns": "{ ok: true }", "returnsSchema": { "type": "object", "properties": { "ok": { "const": true } }, "required": [ "ok" ] }, "examples": [ { "summary": "转存群文件", "params": { "group_id": 20001, "file_id": "" }, "notes": "替换群文件列表中的实际 file_id;需要对应文件操作权限。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "file_id", "type": "string", "required": true, "role": "file_id", "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" }, "file_id": { "type": "string", "minLength": 1, "x-role": "file_id" } }, "required": [ "group_id", "file_id" ], "additionalProperties": true }, "category": "扩展" }, { "name": "translate_en2zh", "aliases": [], "summary": "英译中", "returns": "{ words }:与输入等长的中文译文字符串数组。", "returnsSchema": { "type": "object", "properties": { "words": { "type": "array", "description": "译文数组", "items": { "type": "string" } } }, "required": [ "words" ] }, "examples": [ { "summary": "英译中", "params": { "words": [ "Hello" ] } } ], "readOnly": true, "params": [ { "name": "words", "type": "string[]", "required": true, "schema": { "type": "array", "items": { "type": "string" } } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "words": { "type": "array", "items": { "type": "string" } } }, "required": [ "words" ], "additionalProperties": true }, "category": "扩展" }, { "name": "unlike_qzone", "aliases": [], "summary": "取消对一条说说的点赞(QQ 空间;取消赞端点待真机核实)", "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "取消对一条说说的点赞(QQ 空间;取消赞端点待真机核实)", "params": { "tid": "", "target_uin": 10001 }, "notes": "tid 来自 get_qzone_msg_list;操作需有该说说的访问或管理权限。" } ], "readOnly": false, "params": [ { "name": "tid", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "说说 tid" }, { "name": "target_uin", "type": "uint", "required": false, "role": "user_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "说说所属 QQ 号,省略则为机器人自己" }, { "name": "abstime", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "desc": "说说发表时间(unix 秒),传真实值更可靠", "default": 0, "role": "timestamp" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "tid": { "type": "string", "minLength": 1, "description": "说说 tid" }, "target_uin": { "type": "integer", "minimum": 1, "description": "说说所属 QQ 号,省略则为机器人自己", "x-role": "user_id" }, "abstime": { "type": "integer", "minimum": 0, "description": "说说发表时间(unix 秒),传真实值更可靠", "default": 0, "x-role": "timestamp" } }, "required": [ "tid" ], "additionalProperties": true }, "category": "空间" }, { "name": "upload_file_stream", "aliases": [], "summary": "以流式分块方式上传文件到机器人本地(返回可用于发送的本地路径)", "returns": "流式帧:分块确认 type=stream、完成 type=response(含 file_path/file_name/file_size/sha256)", "returnsSchema": { "oneOf": [ { "type": "object", "properties": { "type": { "const": "stream" }, "stream_id": { "type": "string" }, "status": { "enum": [ "file_created", "chunk_received" ] }, "received_chunks": { "type": "integer" }, "total_chunks": { "type": "integer" } }, "required": [ "type", "stream_id", "status", "received_chunks", "total_chunks" ] }, { "type": "object", "properties": { "type": { "const": "response" }, "stream_id": { "type": "string" }, "status": { "const": "file_complete" }, "received_chunks": { "type": "integer" }, "total_chunks": { "type": "integer" }, "file_path": { "type": "string" }, "file_name": { "type": "string" }, "file_size": { "type": "integer" }, "sha256": { "type": "string" } }, "required": [ "type", "stream_id", "status", "received_chunks", "total_chunks", "file_path", "file_name", "file_size", "sha256" ] } ], "description": "分块确认与完成帧的 data;reset 和其他失败由错误帧返回。必须等到 file_complete 才能使用 file_path" }, "examples": [ { "summary": "上传分块", "params": { "stream_id": "example-upload-001", "filename": "hello.txt", "total_chunks": 1, "file_size": 5, "chunk_index": 0, "chunk_data": "aGVsbG8=" }, "notes": "第 1 步:每次上传生成新的 stream_id;这里上传 hello 的唯一分块。通过 invoke_action 调用,分块确认不等于整文件完成。" }, { "summary": "完成同一上传", "params": { "stream_id": "example-upload-001", "is_complete": true }, "notes": "第 2 步:等待全部分块确认后,用同一个 stream_id 单独请求完成;成功时返回 file_path。MCP 的 invoke_action 也可通过 execution.input_file 自动完成上传。" } ], "readOnly": false, "params": [ { "name": "stream_id", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "流 ID(客户端生成的 UUID,限 [A-Za-z0-9_-])" }, { "name": "chunk_data", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "分块数据(Base64)" }, { "name": "chunk_index", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "desc": "分块索引(从 0 开始)" }, { "name": "total_chunks", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 1 }, "desc": "总分块数(新流必填)" }, { "name": "file_size", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "desc": "文件总大小(字节)" }, { "name": "expected_sha256", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "期望的整文件 SHA256(校验)" }, { "name": "is_complete", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "是否为最后一个分块/触发合并" }, { "name": "filename", "type": "string", "required": false, "schema": { "type": "string" }, "desc": "文件名" }, { "name": "reset", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "重置并丢弃该流" }, { "name": "verify_only", "type": "bool", "required": false, "schema": { "type": "boolean" }, "desc": "仅查询当前流状态" }, { "name": "file_retention", "type": "int", "required": false, "schema": { "type": "integer", "minimum": 0 }, "default": 300000, "desc": "合并文件保留毫秒(0=不回收)" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "stream_id": { "type": "string", "minLength": 1, "description": "流 ID(客户端生成的 UUID,限 [A-Za-z0-9_-])" }, "chunk_data": { "type": "string", "description": "分块数据(Base64)" }, "chunk_index": { "type": "integer", "minimum": 0, "description": "分块索引(从 0 开始)" }, "total_chunks": { "type": "integer", "minimum": 1, "description": "总分块数(新流必填)" }, "file_size": { "type": "integer", "minimum": 0, "description": "文件总大小(字节)" }, "expected_sha256": { "type": "string", "description": "期望的整文件 SHA256(校验)" }, "is_complete": { "type": "boolean", "description": "是否为最后一个分块/触发合并" }, "filename": { "type": "string", "description": "文件名" }, "reset": { "type": "boolean", "description": "重置并丢弃该流" }, "verify_only": { "type": "boolean", "description": "仅查询当前流状态" }, "file_retention": { "type": "integer", "minimum": 0, "description": "合并文件保留毫秒(0=不回收)", "default": 300000 } }, "required": [ "stream_id" ], "additionalProperties": true }, "stream": true, "category": "流式接口" }, { "name": "upload_forward_msg", "aliases": [], "summary": "上传转发消息", "returnsSchema": { "type": "object", "properties": { "res_id": { "type": "string" }, "forward_id": { "type": "string" }, "message_id": { "const": 0, "description": "仅上传资源,不代表已发送消息;0 不能用于消息查询或撤回" }, "group_id": { "type": "integer", "description": "仅请求提供正数 group_id 时出现" } }, "required": [ "res_id", "forward_id", "message_id" ] }, "examples": [ { "summary": "上传转发消息", "params": { "group_id": 20001, "messages": [ { "type": "node", "data": { "user_id": 10001, "nickname": "示例用户", "content": [ { "type": "text", "data": { "text": "转发内容" } } ] } } ] }, "notes": "仅上传合并转发资源,不发送聊天消息;message_id=0 是占位值,后续使用 res_id。" } ], "readOnly": false, "params": [ { "name": "messages", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "message", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "messages": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "message": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "upload_foward_msg", "aliases": [], "summary": "上传转发消息(别名拼写)", "returnsSchema": { "type": "object", "properties": { "res_id": { "type": "string" }, "forward_id": { "type": "string" }, "message_id": { "const": 0, "description": "仅上传资源,不代表已发送消息;0 不能用于消息查询或撤回" } }, "required": [ "res_id", "forward_id", "message_id" ] }, "examples": [ { "summary": "上传转发消息(别名拼写)", "params": { "messages": [ { "type": "node", "data": { "user_id": 10001, "nickname": "示例用户", "content": [ { "type": "text", "data": { "text": "转发内容" } } ] } } ] }, "notes": "历史拼写兼容接口,仅上传资源;message_id=0,返回值没有 group_id。" } ], "readOnly": false, "params": [ { "name": "messages", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "message", "type": "message", "required": false, "schema": { "description": "OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly \"\" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation." }, "desc": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, { "name": "group_id", "type": "uint", "required": false, "role": "group_id", "schema": { "type": "integer", "minimum": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "messages": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "message": { "description": "转发节点数组;节点 content 内的 reply.data.message 可提供自定义引用内容(字符串或消息段),qq/time/seq 可选;仅用于转发内引用预览。" }, "group_id": { "type": "integer", "minimum": 1, "x-role": "group_id" } }, "additionalProperties": true }, "category": "扩展" }, { "name": "upload_group_file", "aliases": [], "summary": "上传群文件", "returns": "{ file_id: string }", "returnsSchema": { "type": "object", "properties": { "file_id": { "type": "string" } }, "required": [ "file_id" ] }, "examples": [ { "summary": "上传群文件", "params": { "group_id": 20001, "file": "file:///path/to/report.pdf", "name": "报告.pdf" }, "notes": "示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "file", "type": "string", "required": true, "role": "file", "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": "群号", "x-role": "group_id" }, "file": { "type": "string", "minLength": 1, "x-role": "file" }, "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": [], "returnsSchema": { "type": "null", "description": "成功时 data 为 null;失败另见响应的 status、retcode 和 wording" }, "examples": [ { "summary": "基本调用", "params": { "group_id": 20001, "album_id": "", "album_name": "活动照片", "file": "file:///path/to/photo.png" }, "notes": "album_id 来自 get_group_album_list;lloc 或视频 id、batch_id 来自 get_group_album_media_list。替换群号及对应资源标识。 示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "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, "role": "image", "schema": { "type": "string", "minLength": 1 } } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "album_id": { "type": "string", "minLength": 1 }, "album_name": { "type": "string", "minLength": 1 }, "file": { "type": "string", "minLength": 1, "x-role": "image" } }, "required": [ "group_id", "album_id", "album_name", "file" ], "additionalProperties": true }, "category": "群相册" }, { "name": "upload_private_file", "aliases": [], "summary": "上传私聊文件", "returns": "{ file_id: string }", "returnsSchema": { "type": "object", "properties": { "file_id": { "type": "string" } }, "required": [ "file_id" ] }, "examples": [ { "summary": "上传私聊文件", "params": { "user_id": 10001, "file": "file:///path/to/report.pdf", "name": "报告.pdf" }, "notes": "示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。 默认上传并发送给该好友。" } ], "readOnly": false, "params": [ { "name": "user_id", "type": "uint", "required": true, "role": "user_id", "schema": { "type": "integer", "minimum": 1 } }, { "name": "file", "type": "string", "required": true, "role": "file", "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, "x-role": "user_id" }, "file": { "type": "string", "minLength": 1, "x-role": "file" }, "name": { "type": "string", "default": "" }, "upload_file": { "type": "boolean", "default": true } }, "required": [ "user_id", "file" ], "additionalProperties": true }, "category": "群文件" }, { "name": "upload_video_to_qun_album", "aliases": [], "summary": "上传视频到群相册", "returns": "{ id: string }", "returnsSchema": { "type": "object", "properties": { "id": { "type": "string", "description": "视频 id" } }, "required": [ "id" ] }, "examples": [ { "summary": "上传视频到群相册", "params": { "group_id": 20001, "album_id": "", "album_name": "活动视频", "file": "file:///path/to/video.mp4" }, "notes": "album_id 来自 get_group_album_list;lloc 或视频 id、batch_id 来自 get_group_album_media_list。替换群号及对应资源标识。 示例路径位于 SnowLuma 服务端,须替换为该服务可读取的实际文件。" } ], "readOnly": false, "params": [ { "name": "group_id", "type": "uint", "required": true, "role": "group_id", "schema": { "type": "integer", "minimum": 1 }, "desc": "群号" }, { "name": "album_id", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "相册 id" }, { "name": "album_name", "type": "string", "required": true, "schema": { "type": "string", "minLength": 1 }, "desc": "相册名称" }, { "name": "file", "type": "string", "required": true, "role": "video", "schema": { "type": "string", "minLength": 1 }, "desc": "视频文件" } ], "invariants": [], "inputSchema": { "type": "object", "properties": { "group_id": { "type": "integer", "minimum": 1, "description": "群号", "x-role": "group_id" }, "album_id": { "type": "string", "minLength": 1, "description": "相册 id" }, "album_name": { "type": "string", "minLength": 1, "description": "相册名称" }, "file": { "type": "string", "minLength": 1, "description": "视频文件", "x-role": "video" } }, "required": [ "group_id", "album_id", "album_name", "file" ], "additionalProperties": true }, "category": "群相册" } ]; export const CATEGORIES: CatalogCategory[] = [ { "category": "信息", "count": 5 }, { "category": "消息", "count": 6 }, { "category": "好友", "count": 3 }, { "category": "群信息", "count": 7 }, { "category": "群管理", "count": 21 }, { "category": "群文件", "count": 12 }, { "category": "请求", "count": 2 }, { "category": "扩展", "count": 115 }, { "category": "群相册", "count": 9 }, { "category": "空间", "count": 26 }, { "category": "系统表情", "count": 4 }, { "category": "流式接口", "count": 6 } ];