MiroMind Deep Research Skill - 使用 MiroThinker AI 进行深度研究。触发词:/miromind。当用户想对某个主题进行深度研究时使用。
🔬 使用 MiroThinker AI 进行深度研究,支持长链推理与多轮验证。
官网: https://dr.miromind.ai/
模型: MiroThinker-1.7 (235B)
bash
OpenClaw 推荐使用 openclaw.json 的 env 部分存储凭据。
bash
json
{
env: {
MIROMIND_EMAIL: your@email.com,
MIROMIND_PASSWORD: your-password
}
}
bash
openclaw gateway restart
当检测到环境变量未配置时,显示以下提示:
🔬 首次使用 MiroMind 技能需要配置!
请在 openclaw.json 中添加以下配置:
{
env: {
MIROMIND_EMAIL: 你的邮箱,
MIROMIND_PASSWORD: 你的密码
}
}
配置后重启 gateway: openclaw gateway restart
/miromind [研究主题或问题]
bash
/miromind 预测2026年黄金价格走势
/miromind 分析英伟达最新财报的关键数据
/miromind 调查量子计算领域的最新突破
当用户只触发命令但没有输入研究主题时,显示:
🔬 MiroMind 深度研究技能
使用 MiroThinker AI 进行深度研究!
📚 可研究的主题示例:
• 金融分析:「比特币2026年价格走势」「黄金走势预测」
• 新闻验证:「某事件是真的吗?」「调查某个新闻的真实性」
• 趋势预测:「AI行业未来发展趋势」「某个技术的发展前景」
• 学术研究:「量子计算最新突破」「某个科学领域的进展」
• 商业分析:「某公司财务状况分析」「市场竞争格局研究」
🚀 使用方法:
/miromind [你的研究问题]
⚡ 注意:研究过程可能需要 3-10 分钟,请耐心等待~
关键发现:MiroMind 网站可以通过 URL 参数直接提交研究,避免按钮点击问题。
格式:
https://dr.miromind.ai/?noReleaseNotes&query=
示例:
https://dr.miromind.ai/?noReleaseNotes&query=Claude%20Sonnet%205%20%E5%92%8C%E6%96%B0%E5%8A%9F%E8%83%BD
javascript
sessions_spawn({
task: 执行 MiroMind 深度研究...,
runtime: subagent,
runTimeoutSeconds: 900, // 15 分钟
mode: run // 或 session
})
必须返回以下信息:
javascript
{
sessionKey: xxx, // 子代理会话密钥
chatUrl: https://dr.miromind.ai/chat/019d0712-904f-7282-b0b5-1b6a438443b1,
query: 研究问题,
status: running // 或 completed
}
聊天 URL 格式:
https://dr.miromind.ai/chat/
从 page.url() 获取。
⚠️ 重要:子代理生成时会返回 sessionKey,生成完成后立即返回聊天 URL 给主会话,让用户可以查看进度。
javascript
const email = process.env.MIROMIND_EMAIL;
const password = process.env.MIROMIND_PASSWORD;
if (!email || !password) {
return { error: ❌ 请先配置环境变量 MIROMINDEMAIL 和 MIROMINDPASSWORD };
}
javascript
await browser.navigate(https://dr.miromind.ai/);
await page.waitForTimeout(2000);
javascript
// 查找右上角用户名按钮(不写死用户名)
// 中英文双重检查
const loginBtnZh = await page.$(button:has-text(登录));
const loginBtnEn = await page.$(button:has-text(Sign in));
const loginBtn = loginBtnZh || loginBtnEn;
if (loginBtn) {
// 需要登录
const email = process.env.MIROMIND_EMAIL;
const password = process.env.MIROMIND_PASSWORD;
// ... 登录逻辑
} else {
// 已登录
}
javascript
// 构建 URL
const query = encodeURIComponent(你的研究问题);
const submitUrl = https://dr.miromind.ai/?noReleaseNotes&query=${query};
// 导航到 URL
await page.goto(submitUrl);
await page.waitForTimeout(3000);
// 验证 URL 变化(表示成功创建研究)
const currentUrl = page.url();
if (!currentUrl.includes(/chat/)) {
throw new Error(研究提交失败);
}
// URL 应该是类似:/chat/019d0705-xxx-xxx
// 这个 URL 就是聊天 URL,需要返回给主会话
const chatUrl = page.url(); // 例如: https://dr.miromind.ai/chat/019d0712-904f-7282-b0b5-1b6a438443b1
javascript
const startTime = Date.now();
const maxWait = 20 60 1000; // 20 分钟
while (Date.now() - startTime < maxWait) {
const status = await page.evaluate(() => {
const bodyText = document.body.innerText;
// 运行中
if (bodyText.includes(任务在后台运行)) {
return running;
}
// 完成 - 查找显示思考过程 总结按钮
const completeBtn = document.querySelector(button:has-text(显示思考过程));
if (completeBtn) {
return complete;
}
return unknown;
});
if (status === complete) {
console.log(研究完成!);
break;
}
console.log(研究进行中...);
await page.waitForTimeout(10000); // 每 10 秒检查
}
javascript
// 点击显示思考过程 总结展开完整内容(如有)
const showBtn = await page.$(button:has-text(显示思考过程));
if (showBtn) {
await showBtn.click();
await page.waitForTimeout(2000);
}
// 提取主内容
const content = await page.evaluate(() => {
const main = document.querySelector(main main) || document.querySelector(main);
return main ? main.innerText : ;
});
// 保存报告
const filename = mirothinker-${Date.now()}.md;
const filepath = path.join(outputDir, filename);
const report = # MiroMind 深度研究报告
研究主题: ${query}
研究时间: ${new Date().toLocaleString()}
fs.writeFileSync(filepath, report);
return filepath;
javascript
async function runMiroResearch(query) {
// 1. 检查环境变量
const email = process.env.MIROMIND_EMAIL
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 miromind-1776086351 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 miromind-1776086351 技能
skillhub install miromind-1776086351
文件大小: 9.51 KB | 发布时间: 2026-4-17 15:25