snapshot
Captures the current tab's accessibility tree, tagging interactive elements with [ref=eN] IDs for click and type tools; re-run after page changes or scope by ref/depth on large pages.
Instructions
获取当前标签页的页面结构快照(可访问性树)。每个可交互元素带 [ref=eN],click/type 等工具通过 ref 指定元素。页面变化后旧 ref 可能失效,需要重新 snapshot。页面很大时可用 ref 只取某个区域、用 depth 限制层级。
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": "snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | 只取这个元素及其内部(来自之前快照的 ref) | |
| depth | No | 限制层级深度,用于先看页面大致结构 |