browser_snapshot
Capture a page's accessibility tree as compact text with stable element references. Use options to trim or expand details for targeted analysis.
Instructions
Purpose: Capture the page's accessibility tree as compact text with stable element references (@e1, @e2, ...).… Constraints: compact is default; detailed requests an uncompacted unlimited-depth tree. Use interactive, include_urls, depth, or selector to narrow/expand it. Iframes auto-inline… Example: browser_snapshot(session='recon')
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 |
|---|---|---|---|
| depth | No | ||
| compact | No | ||
| session | No | default | |
| detailed | No | ||
| selector | No | ||
| interactive | No | ||
| include_urls | No | ||
| inline_iframes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||