click
Presses a single web element by ref, role+name, or x/y coordinates for canvas, maps, and games; supports drags and expected-result checks in signed-in Chrome.
Instructions
Click ONE element by ref. Know your next step already? Use act instead — each extra call costs a full model turn. Canvas / map / game with nothing in the snapshot? Pass x,y (CSS px from a screenshot) for a real click there; add dragTo for a drag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | Element ref from the latest snapshot, e.g. "e3" | |
| find | No | Locate by role+name from the snapshot instead of by ref. Survives re-renders. | |
| real | No | Request a browser-level event explicitly. An uncertain or no-effect action is never automatically replayed. | |
| tabId | No | Target tab id. Omit to use the active controlled tab. | |
| dragTo | No | {x, y}: press at x,y, move here, release. | |
| expect | No | Expected result, checked within the settle window and reported if unmet: {checked, value, text: target contains, gone: target removed, appears: selector/text now on page} | |
| spaceId | No | Pin this command to an owned BeatBrowser TaskSpace. Also pass its tabId. | |
| selector | No | CSS fallback for elements the snapshot cannot see. Skips ref safety checks. | |
| snapshotId | No | snapshotId the ref came from |