browser_debug
Generate browser debug reports, diagnose error root causes, or investigate symptoms with automated evidence collection and hypothesis generation.
Instructions
浏览器调试诊断工具(v1.9.5 起合并 browser_debug_report/browser_diagnose/debug_investigate)。通过 mode 参数区分子模式:report(默认,生成调试报告汇总页面状态、错误日志、网络错误)/ diagnose(自动诊断浏览器错误根因,返回 rootCause/confidence/suggestedFixes)/ investigate(输入问题症状,自动汇总 errors/events/network/DOM/storage/artifacts 并输出假设和证据链)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 调试模式:report(默认,生成调试报告)/ diagnose(诊断错误根因)/ investigate(问题调查与假设) | report |
| focus | No | 关注的 URL/API 关键字,例如 /api/ai/summarize(mode=investigate 时使用) | |
| limit | No | 网络和事件最多返回条数,默认 20/50(mode=investigate 时使用) | |
| symptom | No | 问题现象,例如:点击 AI 要点后 403(mode=investigate 时使用) | |
| expected | No | 期望结果,例如:生成 AI 要点(mode=investigate 时使用) | |
| selector | No | 目标元素选择器,诊断该元素相关的错误(mode=diagnose 时可选,不传则诊断整个页面) | |
| errorType | No | 聚焦诊断的错误类型:all(全部)、js(JS错误)、network(网络错误)、element(元素问题)、interaction(交互失败),默认 all(mode=diagnose 时使用) | all |
| statusMin | No | 只关注状态码大于等于该值的网络记录(mode=investigate 时使用) | |
| includeDom | No | 是否包含页面文本和元素摘要,默认 true(mode=report 时使用) | |
| urlContains | No | focus 的别名,按 URL 过滤网络和事件(mode=investigate 时使用) | |
| includeStorage | No | 是否包含存储信息,默认 false(mode=report 时使用);mode=investigate 时默认 true | |
| includeArtifacts | No | 是否包含 artifacts 列表,默认 true(mode=investigate 时使用) | |
| includeStackTrace | No | 是否包含 JS 错误堆栈分析,默认 true(mode=diagnose 时使用) |