在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用execute-task
星标52
分支1
更新时间2026年3月1日 09:15
机器人唯一的动作出口。通过 TS/JS 代码调用 OneBot API。
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
机器人唯一的动作出口。通过 TS/JS 代码调用 OneBot API。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | execute-task |
| description | 机器人唯一的动作出口。通过 TS/JS 代码调用 OneBot API。 |
sendGroupMsg。stderr 或 API 报错直接发到群聊。// 发送图文结合的最终结论
const groupId = 789012;
const result = "确认完成。路径已校准。";
const imageUrl = "https://example.com/status.jpg";
await context.sendGroupMsg(groupId, [
{ type: 'text', data: { text: result } },
{ type: 'image', data: { file: imageUrl } }
]);
发送群聊消息。
参数:
groupId: number - 群号message: string | MessageSegment[] - 消息内容await context.sendGroupMsg(groupId, "你好,这是文本消息");
await context.sendGroupMsg(groupId, [
{ type: 'at', data: { qq: '123456' } },
{ type: 'text', data: { text: '你好' } }
]);
await context.sendGroupMsg(groupId, [
{ type: 'image', data: { file: 'https://example.com/image.jpg' } }
]);
发送私聊消息。
参数:
userId: number - 对方 QQ 号message: string | MessageSegment[] - 消息内容context.fin 为 true 时所有 API 失效,禁止再调用发送方法text 类型使用 @ 符号,应使用 { type: 'at', data: { qq: '123456' } }text 消息段末尾会自动添加换行util.searchHistoryMessages 工具函数