browser_snapshot
Capture a browser tab's structured accessibility tree and numbered interactive elements to inspect page state and target buttons, inputs, or links for automation.
Instructions
Capture the structured accessibility tree and numbered interactive elements (buttons, inputs, links) from a browser tab (the focused one unless tabId is given).
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 |
|---|---|---|---|
| diff | No | ||
| text | No | ||
| query | No | ||
| roles | No | ||
| tabId | No | Optional browser tab id to act on instead of the focused tab. | |
| shadow | No | ||
| maxNodes | No | ||
| refPrefix | No | ||
| allElements | No | ||
| minImageArea | No | ||
| includeImages | No |