Query Elements
query_elementsFind page elements and return structured details like text, value, href, visibility, and disabled state to inspect content before acting.
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. A tool that changes a tab will not fall back to the tab the user is looking at, so pass this or call open_url first. | |
| verbose | No | Include the bulky element rect and longer attribute values | |
| selector | Yes | CSS selector, or one of: "text=Some label" (visible text, case-insensitive substring, exact matches ranked first); "ref=e12" (a ref from snapshot, re-resolved if the page re-rendered); "role=button[name="Save"]" (ARIA or implicit role, name an exact match, or name~="sav" for a substring); "label=Email" (the control a label names); "placeholder=Search" | |
| visible_only | No | Skip hidden elements |