click
Simulates left, right, or middle mouse presses at a CSS selector’s center via CDP Input.dispatchMouseEvent to automate interaction with Electron app elements.
Instructions
Click the center of a CSS selector via CDP Input.dispatchMouseEvent
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Accessibility element ref (e.g. 'e1', 'e12') from snapshot | |
| button | No | ||
| selector | No | CSS selector to click | |
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. |