find
Locate web page elements using natural language queries when exact selectors are unknown. Returns up to 20 matching references.
Instructions
Find elements by query. Returns up to 20 matches with refs.
When to use: Locating elements by natural language when exact selectors are unknown. When NOT to use: Use query_dom when you have a CSS selector or XPath, or interact to find-and-click in one step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID to search in | |
| query | Yes | What to find (natural language) | |
| waitForMs | No | Poll timeout in ms. Default: 3000. 0 to disable | |
| pollInterval | No | Poll interval in ms. Default: 200 | |
| vision_fallback | No | Deprecated alias for allow_vision_fallback (kept for back-compat). | |
| allow_vision_fallback | No | Opt into vision-based screenshot analysis when DOM discovery returns nothing. #831 flipped the default to OFF — supply `true` here OR set OPENCHROME_VISION_MODE=on (or fallback/auto) to enable vision. |