browser_highlight
Add a colored border and shadow to any page element for visual debugging and human observation. Use it to highlight elements during inspections or reviews.
Instructions
Highlight a specific element on the page with a colored border and shadow for human observation and debugging. Effect persists until page refresh.
中文详情:
用途:在页面上高亮显示指定元素(默认红色边框和阴影),便于人工观察和调试
何时使用:调试元素定位问题时;演示/评审时强调某个元素;视觉走查时标记可疑元素;自动化失败后人工复核时
输出:{ ok: boolean, selector: string, color: string, timestamp: string }
参数:
selector (string, 必填):要高亮的元素选择器
color (string, 可选):高亮颜色,支持 CSS 颜色值,默认 red
错误:selector 无匹配抛出 'element not found';color 值非法会使用默认红色
示例:{"selector":".error-message","color":"#ff6600"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | 高亮颜色,支持CSS颜色值,默认为红色(red) | |
| selector | Yes | 要高亮的元素选择器 |