browser_snapshot
Read a page as a compact accessibility tree of headings, text, and interactive elements with refs to click, type, or inspect, so agents can understand pages and find elements without screenshots.
Instructions
Read the page as a compact accessibility-style tree: headings, text, and every interactive element with a [ref=eN] you can pass to click/type/inspect. Use this first to understand a page and find elements — it is cheaper and more precise than a screenshot.
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 |
|---|---|---|---|
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| maxChars | No | Output budget (default 25000). | |
| selector | No | Only snapshot this subtree. | |
| interactiveOnly | No | Only list interactive elements (smaller output). |