click_element
Execute clicks on web elements using CSS selectors to automate interactions within a headless browser environment via MCP Web Browser Server.
Instructions
Click an element on the current page.
Args:
selector: CSS selector for the element to click
context: Optional context object for logging (ignored)
Returns:
Confirmation message or error details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context | No | ||
selector | Yes |
Input Schema (JSON Schema)
{
"properties": {
"context": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Context"
},
"selector": {
"title": "Selector",
"type": "string"
}
},
"required": [
"selector"
],
"title": "click_elementArguments",
"type": "object"
}