Click
clickTriggers an element by ref, selector, text, or role+name and returns a compact change observation, reducing the need for follow-up snapshots.
Instructions
Click an element. Target one of: ref (preferred), selector, text, or role+name. Humanized mouse movement is used by default. Returns a compact change observation so you rarely need a second snapshot.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot, e.g. e12. Preferred over selectors. | |
| name | No | Accessible name to combine with role. | |
| role | No | ARIA role, e.g. button, link, textbox, checkbox, combobox. | |
| text | No | Visible text to match (first match wins). | |
| exact | No | Require exact text/name match. | |
| button | No | ||
| confirm | No | Confirm a high-impact action when the server policy is ask. | |
| observe | No | Return a compact change observation after the action (default true). | |
| humanize | No | ||
| selector | No | CSS selector (use when no ref is available). | |
| click_count | No |