page_find
Locate elements on a page by visible text, ARIA role, or CSS selector, returning stable refs for subsequent click or type actions. Searches interactive elements by default; enable includeNonInteractive to target all.
Instructions
Find elements on the page by visible TEXT, ARIA ROLE, and/or a CSS SELECTOR, returning each match with a stable ref (e1, e2, ...) for page_click/page_type/etc — the targeted alternative to page_snapshot's full listing. Give at least one of text/role/selector; they AND together. Searches interactive elements by default; set includeNonInteractive:true to search all elements (e.g. to find a heading or price by text). Refs from a prior snapshot/find are invalidated by this call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ARIA role to match, explicit or implicit — e.g. button, link, textbox, checkbox, combobox | |
| text | No | case-insensitive substring to match against an element's visible/accessible text | |
| limit | No | max matches to return (default 30) | |
| selector | No | raw CSS selector to match (escape hatch; narrows the search base) | |
| sessionId | No | ||
| includeNonInteractive | No | also search non-interactive elements (default: interactive only). Ignored when selector is given |