Click
clickActivate page elements in Arc using CSS selectors or visible text labels. Scrolls targets into view and dispatches real pointer events, reporting match counts to resolve ambiguous text matches.
Instructions
Click an element. Accepts a CSS selector or "text=Label". Scrolls it into view and dispatches a real pointer sequence, so framework handlers fire. "text=Label" matches on visible text as a substring, with exact matches ranked first, so a short label also matches longer ones. Check the returned "matches" count, and pass exact when it is above 1. Returns urlBefore, the url as it was immediately before the click: the tab snapshot can be taken before a navigation settles, so follow with wait_for_load when the click navigates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Which match to click when several exist, 0-based. Order is exact text matches first, then substring matches, each in DOM order. | |
| exact | No | For "text=" selectors, require the whole trimmed text to equal the label instead of containing it. No effect on CSS selectors. | |
| 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) |