click_element
Click a UI element by its parsed ID instead of guessing coordinates. Use after parse_screen/find_elements; re-parse after navigation to avoid stale IDs.
Instructions
Click an element by id from that instance's most recent parse_screen/find_elements (no coordinate guessing).
Returns {"ok", "action", "instance", "detail", "element", "center", "hit"?, "warnings"?}
("hit"/"warnings": see click()). Fails (isError) with the
fix named if the id is unknown — run parse_screen(instance) first. Ids from a vision parse
are remembered pixels: they go stale when the screen changes, so re-parse after navigation.
Ids from an accessibility source (parse "source": browser-dom | at-spi) are re-located just
before the click: an element that moved is clicked where it is NOW ("moved_from"), one that
is scrolled out of view is scrolled in first ("scrolled": true), and one that is gone fails
with "stale": true and nothing clicked. modifiers/observe/settle_ms: see click().
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": {
"id": "<id>"
},
"name": "click_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| button | No | ||
| observe | No | none | |
| instance | No | ||
| modifiers | No | ||
| settle_ms | No | ||
| observe_region | No |