Find in page snapshot
browser_findSearch the current browser snapshot for text or regex patterns, returning matching lines with surrounding context.
Instructions
Search the current snapshot for text or a regex and return matching lines with their refs. Far cheaper than re-reading the whole snapshot when you only need to locate one element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Plain text to search for (case-insensitive substring). Provide either text or regex. | |
| regex | No | Regular expression, e.g. "error" or "/log(in|out)/i". Provide either text or regex. | |
| context | No | Lines of context around each match (default 2) |