dom_click
Click the first element matching a CSS selector by scrolling it into view first, enabling precise DOM interaction in a specified browser tab for debugging or automated testing.
Instructions
Click the first element matching a CSS selector (scrolls into view first).
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": {
"targetId": "<targetId>",
"selector": "<selector>"
},
"name": "dom_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the element to click | |
| targetId | Yes | Target ID of the tab |