Query page elements
query_elementsLocate specific page elements using CSS selectors, ARIA roles, text content, or visibility filters, returning only matching element details instead of full page text.
Instructions
Find elements by selector, role, text, and visibility without returning full page text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| text | No | ||
| limit | No | ||
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| visible | No | ||
| selector | No | ||
| documentId | No | Exact frame document id returned by list_frames. Omit to target the current top document. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |