用途:该技能通过浏览器自动化驱动 Google Gemini 的 Deep Research 功能,执行长篇幅研究查询并生成带来源引用的 Markdown 报告(约 4 万字符以上)。
主要能力:自动完成预检(CDP 连通、登录状态)、输入查询、等待并提取研究计划、自动确认开始研究、轮询完成状态、提取报告,可选通过 Firecrawl 生成分享链接并抓取。
前置条件:Chrome 需以 --remote-debugging-port=9222 启动;在调试 Chrome 中登录 Gemini Advanced 账号;安装 playwright-core(bun add -g playwright-core);运行时使用 npx tsx(Bun 的 CDP connectOverCDP 会超时)。
启动 Chrome 示例:/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir="/tmp/gemini-research-profile" "https://gemini.google.com/app",随后手动登录。
用法:CLI 如 npx tsx {{skill_dir}}/scripts/research.ts --health 做健康检查;npx tsx {{skill_dir}}/scripts/research.ts "your research query" 执行研究;支持 --output、--output-dir、--timeout、--no-confirm、--no-preflight。也可编程导入 GeminiDeepResearchClient 使用。默认 cdpUrl 为 http://127.0.0.1:9222,maxResearchTimeMs 1800000,pollIntervalMs 5000,autoConfirm 为 true。
完成判定依据麦克风按钮重现、报告文本超 500 字符、文本长度连续三次稳定(约 15 秒)。选择器集中于 scripts/selectors.ts,若 Google 更新 UI 可用 probes 脚本排查后更新。
限制:依赖本机 Chrome 调试端口与已登录的 Gemini Advanced 账号;界面选择器可能因 Google 更新而失效;具体收费、价格与效果资料暂未提供。