click
Simulate real CDP mouse events on a CSS-selected page element to trigger left, right, middle, or double presses in any web framework.
Instructions
Click an element using real CDP mouse events (works with any framework)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab ID (optional) | |
| button | No | Mouse button (default left) | |
| selector | Yes | CSS selector of the element to click | |
| clickCount | No | Number of clicks (2 for double-click) |