click
Click a page element using a CSS selector and visually verify the result with an automatic screenshot. Optionally navigate to a URL first or wait after clicking.
Instructions
Click an element by CSS selector. Returns a screenshot after the click so you can visually verify the result. Supports standard CSS selectors. If the page hasn't been navigated yet, provide a URL to navigate 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": {
"selector": "<selector>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the element to click (e.g., 'button.submit', '#login-btn') | |
| url | No | Optional URL to navigate to before clicking | |
| waitAfter | No | Optional milliseconds to wait after clicking (for animations/transitions) |