browser_snapshot
Captures a page as an indented accessibility tree with element refs, enabling agents to inspect actionable elements and scope large pages by ref or selector instead of screenshots.
Instructions
The page as an indented accessibility tree; actionable elements carry [ref=N]. Cheaper and more exact than a screenshot. Scope big pages with ref or selector.
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 |
|---|---|---|---|
| ref | No | ref from browser_snapshot | |
| grep | No | Instead: the text passages with these words | |
| text | No | Visible text/label, instead of ref | |
| limit | No | Max lines (2000) | |
| selector | No | CSS selector, instead of ref | |
| full_text | No | Uncut texts, names and values |