browser_snapshot
Capture a semantic snapshot of the current browser page to identify interactive elements with [eN] refs for reliable AI-driven actions. Limit output by selector, rootRef, or interactive filter.
Instructions
获取当前页面语义快照:交互元素带 [eN] ref 编号(iframe 内容已拍平)。支持 rootRef(只看某元素子树)、selector、filter:"interactive" 只看交互元素。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | ||
| rootRef | No | 只快照该 ref 元素的子树 | |
| selector | No | 只快照匹配该 CSS 选择器的子树(主文档) | |
| maxElements | No | 最多输出行数(默认 400) |