browser_find
Locate elements on a page by searching its accessibility snapshot for text or regex, returning matching references and surrounding context without a full snapshot.
Instructions
Search the current page's aria snapshot for text or a regex. Returns matching nodes with their [ref] and a few lines of surrounding context — cheaper than a full browser_snapshot when you only need to locate an element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text substring, or a regex source when regex=true. | |
| regex | No | Treat query as a regular expression. | |
| context | No | Lines of surrounding context per match. Default 2. | |
| ignoreCase | No | Case-insensitive match. Default true. | |
| maxMatches | No | Max matches to return. Default 20. |