browser_find
Search the current page's accessibility snapshot for text or a regular expression. Returns matching nodes with context and their paths, avoiding a full snapshot when locating an element and its ref.
Instructions
Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of context, each under its path from the root, which is cheaper than a full snapshot when you only need to locate an element and its ref.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Plain text to search for in the page snapshot (case-insensitive substring match). Provide either text or regex, not both. | |
| regex | No | Regular expression to search for in the page snapshot. Case-sensitive by default; wrap the pattern in slashes to add flags, e.g. "/error/i". Provide either text or regex, not both. | |
| filename | No | Save results to this file instead of returning them in the response. |