oc_query
Resolve semantic queries to stable element references for automated browser interactions.
Instructions
Resolve a semantic element query into stable refs for interaction workflows. Uses local AX/DOM matching only; no external AgentQL or LLM provider is called. Pass returned refs to interact, act, fill_form, read_page(ref_id), or plan parseResult.storeAs paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | REQUIRED Tab id to query. | |
| query | Yes | REQUIRED Semantic query such as "checkout button" or "email field". | |
| purpose | No | How the caller intends to use the result. Default: interaction. | |
| limit | No | Maximum refs to return. Default 5, max 20. | |
| includeCandidates | No | When true, include lower-scored DOM candidates as well as AX matches. Default true. |