Browser Find
browser_findSearch for elements by visible text or ARIA role without CSS selectors or full DOM snapshots, then use returned refs to click, type, hover, or select options.
Instructions
Search for element(s) by visible text and/or ARIA role, without needing a CSS selector or a full browser_snapshot dump. e.g. find({text: "sign in"}) or find({role: "button", text: "submit"}). Matches are tagged with a ref, usable as '[data-mcp-ref="f1"]' in browser_click/type/hover/select_option — same mechanism as browser_snapshot, but with an "f" prefix so the two never collide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| role | No | Filter by ARIA role, e.g. "button", "link", "textbox", "heading". At least one of text/role is required. | |
| text | No | Substring (case-insensitive by default) to match against the element's accessible name/label/text. | |
| exact | No | If true, text must match exactly rather than as a substring (default false). | |
| multiple | No | If true, return all matches instead of stopping at the first (default false). | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. | |
| maxResults | No | Cap on results when multiple:true (default 10). Ignored when multiple is false. |