Query elements
browser_queryFind web elements by role, name, text, or CSS selector and get compact match details with visible/enabled state, bypassing full snapshots.
Instructions
Finds elements by role+name, visible text, or CSS, and returns a compact line per match including its ref and visible/enabled state. Use this instead of a full snapshot when you already know what you are looking for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS selector to match. | |
| name | No | Accessible name to match alongside role. | |
| role | No | ARIA role, e.g. "button". | |
| text | No | Visible text to match. | |
| limit | No | Max matches (default 10). | |
| sessionId | Yes | Session id returned by browser_start. |