browser_diagnose
Identify root causes of browser errors by analyzing console, network, element, and JS execution states, returning a diagnostic report with root cause, confidence, suggested fixes, and affected elements.
Instructions
自动诊断浏览器错误根因。分析控制台错误、页面错误、网络错误、元素状态、JS执行状态,定位问题根源(如元素未加载、JS未执行、网络超时、权限不足等)。返回诊断报告含 rootCause、confidence、suggestedFixes、affectedElements。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | 目标元素选择器,诊断该元素相关的错误(可选,不传则诊断整个页面) | |
| errorType | No | 聚焦诊断的错误类型:all(全部)、js(JS错误)、network(网络错误)、element(元素问题)、interaction(交互失败) | all |
| includeStackTrace | No | 是否包含JS错误堆栈分析,默认true |