browser_snapshot
Capture accessibility-tree and DOM field facts with stable refs from an open browser tab, enabling reliable inspection, filtering, and automation of page controls.
Instructions
Read AX with refs, or profile=fields for DOM/AX field facts, labels, context and native values. Popup/controls/owns facts are browser-observed, not inferred ownership. New observations replace refs and retry one document/context race within 30s; next_cursor continues the captured view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Default true; false hides prose, preserving control names and values. | |
| query | No | Case-insensitive literal substring of names, values or nearby context. fields also searches HTML labels, DOM id/name/placeholder and selected options. Zero matches is not an error. | |
| cursor | No | ||
| profile | No | Default full; interactive keeps controls/ancestors; fields returns separate DOM/AX values in a fields array. | |
| verbose | No | Include viewport and snapshot_id. | |
| max_chars | No | ||
| max_nodes | No | ||
| tab_handle | Yes | ||
| text_limit | No | Prose preview length, marked with …; control names/values stay complete. Default 80 for interactive, unlimited for full. | |
| include_hidden | No | fields only, default false: include native fields omitted from AX; ref may be null. Password values omitted. |