dom_query
Query page elements by CSS selector and retrieve tag, text, classes, attributes, geometry, and real visibility. Request computed styles or search inside iframes to inspect single-page app content.
Instructions
Query elements by CSS selector and return tag, id, classes, text, attributes, geometry and real visibility. Ask for computed styles by naming the properties you want. Set frame:'all' to search inside iframes too — single-page apps often render the screen you care about in a child frame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | 'main' (default), 'all', or a substring of a frame's origin/name. | main |
| limit | No | Maximum elements to return. | |
| fields | No | Restrict the returned keys, e.g. ['tag','id','text','visible']. | |
| styles | No | Computed style properties to read, e.g. ['display','zIndex','color']. | |
| selector | Yes | CSS selector. | |
| include_html | No | Include a truncated outerHTML for each match. | |
| visible_only | No | Drop elements that are not actually rendered. | |
| include_attrs | No | Include every HTML attribute of each match. Off by default: attributes dominate the response on real apps. |