click
Use a real pointer sequence to interact with an element in Chrome by CSS selector or ref, submitting forms, opening dialogs, or navigating, with optional wait for page load.
Instructions
Click an element, by CSS selector or by a ref (n1, n2…) from get_interactives or navigate. Fires a real pointer sequence, so it can submit, open a dialog or navigate away — use wait_after to let that settle. Not idempotent, and a click that triggers a native confirm() blocks the bridge: install handle_dialogs first.
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 | |
| 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 |