Find text on the page
browser_findSearch the whole page for specific text and get ranked matches with element details, link hrefs, and optional context. Find exactly what you need on long pages without asking for the full outline.
Instructions
Search text across the WHOLE page (not just the visible part) and get RANKED matches in structuredContent: id, role, name, text (same string, honest label), href (mailto:/tel: pass through intact) and truncated when a value was cut. Optional contextChars allocates a TOTAL text budget across ranked matches: each included match gets context with text, totalChars, observationId and a browser_text continuation if truncated. Context uses the same frozen first-read text as browser_text; contextMatchesOmitted explicitly counts matches without context. The right tool to locate something specific on long pages — do not ask for the full outline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| sessionId | No | optional: the session this call belongs to (from browser_session_open). Omitted uses the shared default session. | |
| contextChars | No | Optional TOTAL context budget across ranked matches, integer 1–12000 characters. Omitted keeps compact matches. |