browser_snapshot
Capture an ARIA accessibility tree with stable refs for browser click/type actions. Compact by default with viewport scope, redaction, and size limits; use refs for interaction.
Instructions
Capture an ARIA-flavored accessibility tree with stable refs and pixel boxes. Compact by default: viewport-only, redacted, depth-limited, and capped to 12KB. Use refs for browser_click/browser_type. Pass mode='full' only when you intentionally need the uncapped page tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| mode | No | compact applies safe defaults; full skips compacting unless explicit options are passed. | compact |
| scope | No | viewport drops nodes whose box is fully outside the visible area. | viewport |
| maxBytes | No | Cap on the JSON-serialized result size. Excess subtrees are pruned and `truncated:true` is set. Use 0 with mode='full' for no cap. | |
| maxDepth | No | Compact mode depth limit before child subtrees are summarized. | |
| textLimit | No | Compact mode character limit for name/text fields. | |
| includeBoxes | No | Compact mode box retention. interactive keeps boxes only for actionable or semantic nodes. | interactive |
| redact | No | Replace likely-secret strings with [REDACTED]. Defaults to true in compact mode. | |
| store | No | Store the raw snapshot in this MCP process for browser_snapshot_query/browser_snapshot_node drilldown. |