click_element
Click buttons, links, or interactive elements on web pages to navigate interfaces, open modals, start conversations, or trigger UI actions using CSS selectors or visible text targeting.
Instructions
Click a button, link, or any interactive element on the page. Useful for navigating through multi-step interfaces, opening chat modals, starting new conversations, or triggering UI actions. Can target elements by CSS selector or by their visible text content. Automatically waits after clicking to allow page updates.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
selector | No | CSS selector for the element to click (e.g., 'button#start-chat', '.new-conversation-btn'). Use this when you know the exact selector. | |
sessionId | Yes | Session ID obtained from initialize_session | |
text | No | Alternative to selector: visible text content to search for and click (e.g., 'Start Chat', 'Sign In', 'New Conversation'). Use this when selector is unknown. | |
waitAfter | No | Milliseconds to wait after clicking to allow animations, redirects, or dynamic content to load (default: 1000) |
Input Schema (JSON Schema)
{
"properties": {
"selector": {
"description": "CSS selector for the element to click (e.g., 'button#start-chat', '.new-conversation-btn'). Use this when you know the exact selector.",
"type": "string"
},
"sessionId": {
"description": "Session ID obtained from initialize_session",
"type": "string"
},
"text": {
"description": "Alternative to selector: visible text content to search for and click (e.g., 'Start Chat', 'Sign In', 'New Conversation'). Use this when selector is unknown.",
"type": "string"
},
"waitAfter": {
"default": 1000,
"description": "Milliseconds to wait after clicking to allow animations, redirects, or dynamic content to load (default: 1000)",
"type": "number"
}
},
"required": [
"sessionId"
],
"type": "object"
}