query_dom
Query live DOM elements by CSS selector, returning structure, attributes, bounding rect, and computed styles. Supports piercing shadow DOM via >>>.
Instructions
Query DOM elements by CSS selector, returning structure, attributes, bounding rect, and computed styles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max elements returned, from the top of the match list | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| frame_id | No | Target iframe id from get_frames; omitted = main frame | |
| selector | Yes | CSS selector; ">>>" pierces shadow DOM. Matches all, not just the first | |
| properties | No | Computed styles to include, e.g. ["color"] |