browser_click
Click web page elements using CSS selectors, XPath, or text patterns for browser automation in Daytona Playwright MCP Server.
Instructions
Click on an element on the page.
Supports CSS selectors, XPath, and text selectors. Examples:
CSS: "button.primary", "#submit-btn", "[data-testid='login']"
XPath: "//button[@type='submit']"
Text: "text=Sign In", "text=Submit"
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": "browser_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector, XPath, or text to click (e.g., 'button.submit', '//button[@id="login"]', 'text=Sign In') | |
| button | No | Mouse button to use | left |
| click_count | No | Number of clicks (1 for single, 2 for double) | |
| timeout | No | Timeout in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |