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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "browser_find"
}
}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. |