dom.query
Find elements by CSS selector and return text, attributes, bounding box, and visibility for each match, enabling page inspection or UI-state verification.
Instructions
Find elements by CSS selector, with text, attributes, box and visibility for each match.
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": {
"selector": "<selector>"
},
"name": "dom.query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| frame_id | No | ||
| selector | Yes | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. |