browser_snapshot
Captures a page’s accessibility tree as indented text with refs for actionable nodes, helping agents understand unfamiliar pages and act reliably by passing refs to click or fill tools.
Instructions
Accessibility tree of the page as indented text, with [ref=e12] on every actionable node. The fastest way to understand an unfamiliar page, and the stable way to act on it: pass the ref to browser_click or browser_fill instead of writing CSS. Refs belong to one snapshot — once the page changes, take a new one rather than reusing an old ref.
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 |
|---|---|---|---|
| frameId | No | Read this frame instead of the main document (from browser_frames) | |
| maxNodes | No | Cap on nodes walked before truncating (default 600) | |
| interactiveOnly | No | Only actionable nodes — no headings, landmarks or paragraphs (default false) |