click
Clicks the center of a CSS selector in an Electron app via CDP mouse events to simulate real user interaction during debugging.
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. |