Query Elements
query_elementsRetrieve structured details for page elements via CSS or text selectors, including text, attributes, visibility, and disabled state, to inspect page content before interaction.
Instructions
Find elements and return structured details: text, value, href, visibility, disabled state and attributes. The main way to see what is on a page before acting on it. "text=" matching is substring, with exact matches ranked first; pass exact to require an exact match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | For a "text=" selector, match the whole text rather than a substring | |
| limit | No | Maximum elements to return | |
| tab_id | No | Arc tab id from list_tabs. Omit to use this agent's current tab, falling back to whatever tab is active in Arc. | |
| verbose | No | Include the bulky element rect and longer attribute values | |
| selector | Yes | CSS selector, or "text=Some label" to match on visible text (substring, exact matches ranked first) | |
| visible_only | No | Skip hidden elements |