oc_query
Resolve natural language element queries into stable references for browser automation. Uses local accessibility and DOM matching to identify elements like buttons or fields.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tabId": "<tabId>",
"query": "<query>"
},
"name": "oc_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum refs to return. Default 5, max 20. | |
| query | Yes | REQUIRED Semantic query such as "checkout button" or "email field". | |
| tabId | Yes | REQUIRED Tab id to query. | |
| purpose | No | How the caller intends to use the result. Default: interaction. | |
| includeCandidates | No | When true, include lower-scored DOM candidates as well as AX matches. Default true. |