click
Simulate a mouse click on an element using a CSS selector or snapshot reference, with optional trusted OS-level input for reliable interaction.
Instructions
Click an element (target by selector or a snapshot ref). trusted=true uses real OS-level input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from a prior read (exactly one of selector|ref) | |
| tabId | No | Target tab id (defaults to the active tab) | |
| button | No | ||
| trusted | No | ||
| selector | No | CSS selector (exactly one of selector|ref) | |
| clickCount | No |