Resolve a unique element target
resolve_targetFind one visible element by CSS selector or role/name, returning its ref, frame, and document for actions. Inspect existing refs for reusable targets and field sensitivity without values.
Instructions
Find exactly one visible element by CSS selector (including open shadow roots) or exact simplified role/name. Optional frameId restricts lookup; otherwise scans accessible frames. Ambiguous or missing targets fail. Returns ref, frameId and documentId for document-bound actions; names use the same practical DOM semantics as read_page, not a full ARIA computation. Alternatively, describeRef with optional documentId inspects an issued ref and returns a globally unique reusable target and field sensitivity metadata without field values; no reusable target is promised when one cannot be proved. Supply target or describeRef, never both.
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>"
},
"name": "resolve_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| target | No | ||
| documentId | No | ||
| describeRef | No |