click
Activate a page element by CSS selector or ref to submit forms, open dialogs, or navigate; returns page changes and new interactive refs.
Instructions
Click an element by CSS selector or by a ref (n1, n2…) from get_interactives or navigate. A real pointer sequence: it can submit, open a dialog or navigate — use wait_after. Not idempotent; a native confirm() blocks the bridge: handle_dialogs first. Returns page_changed (url, title and DOM deltas: nodes, text, open, expanded, checked, dialogs, focus): the effect, without a screenshot; when the click opens or reveals something, the refs of the visible interactives follow, no get_interactives needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | From get_interactives, e.g. "n3" | |
| count | No | 2 emits dblclick after the two clicks, which is what selects a word or opens an editor | |
| force | No | Click even if occluded | |
| button | No | right opens the page context menu instead of activating the element | left |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| trusted | No | Real browser input (isTrusted) via chrome.debugger, main frame only: for widgets that ignore synthetic clicks | |
| frame_id | No | Target iframe id from get_frames; omitted = main frame | |
| selector | No | CSS selector; ">>>" pierces shadow DOM. Ignored when ref is given | |
| wait_after | No | Settle before returning: navigation waits for a page load, networkidle for quiet traffic | none |