Click Element
click_elementOpen a page and click an element by CSS selector or visible text, then return the resulting URL and title.
Instructions
Navigate to a URL and click an element by CSS selector or by visible text. Returns the resulting URL and title.
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": {
"url": "<url>"
},
"name": "click_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL to open before clicking | |
| text | No | Visible text to match (clicks first matching element) | |
| selector | No | CSS selector to click (e.g. 'button.primary', '#submit') | |
| waitAfterMs | No | Ms to wait after click for navigation/updates |