Click element
clickClicks a UI element after waiting for it to be visible and actionable. Target elements using CSS selectors or accessibility-first locators like getByRole or getByText.
Instructions
Clicks an element in the session page. Auto-waits for the element to be visible, stable, and actionable. Targets support CSS selectors or accessibility-first locators (getByRole, getByText, getByLabel, ...).
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": {
"sessionId": "<sessionId>",
"target": "<target>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | How to locate the element: {"selector": "#id"} or {"fn": {"name": "getByRole", "args": ["button", {"name": "Sign in"}]}}. | |
| sessionId | Yes | Session id returned by start_session. Required on every stateful tool call. | |
| timeoutMs | No | Action timeout in milliseconds (default 10000). |