Trusted Click
trusted_clickClick elements with real trusted mouse events after scrolling into view when synthetic clicks fail on widgets, menus, autocomplete, or double/right-click targets.
Instructions
Click an element with a real mouse event (isTrusted true), at its center after scrolling it into view. Use it when the synthetic click tool is ignored: widgets gated on event.isTrusted, autocomplete and menus that open on a real pointer, double clicks, right clicks. Needs the DevTools engine. Refuses a disabled control. Returns coveredBy when another element sits on top, because a real click lands on that element. Top-level page only: elements inside an iframe are not reachable by selector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Which match to act on when several exist, 0-based | |
| exact | No | For "text=", "label=" and "placeholder=" selectors, require the whole trimmed text to equal the label. No effect on CSS, ref= or role= selectors. | |
| button | No | Mouse button | left |
| 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. | |
| 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" | |
| click_count | No | 1 for a click, 2 for a double click (the page gets dblclick), 3 for a triple click (selects a paragraph) |