click
Clicks at absolute pixel coordinates in a sandboxed browser or desktop instance and returns what was under the point, optionally with the resulting screen state.
Instructions
Click at absolute pixel coords (top-left origin) in an instance.
For anything with a label, find_elements('Save') -> click_element(id) beats guessing pixels.
Returns {"ok", "action", "instance", "detail", "hit"?, "warnings"?}. "hit" (Chromium-family
browsers only, read from the page's DOM just before the click) names what was under the
point: {"role": "checkbox", "name": "Remember me", "tag", "checked_before", "disabled",
"href", …} or {"role": "browser-ui"} for the toolbar/tab strip — compare it with what you
meant to click; it is absent for native apps. "warnings" appears when the pointer was not
where this server left it (a person or another agent is using the instance — re-screenshot).
button: 1=left, 2=middle, 3=right.
count: 1–3 clicks (2 = double-click, 3 = triple-click selects a line/paragraph).
modifiers: keys held during the click — 'ctrl' (open in new tab / multi-select), 'shift'
(range select), 'alt', 'super', combinable 'ctrl+shift'; released afterwards whatever happens.
observe='screenshot'|'parse'|'elements'|'changes' additionally returns the resulting screen
state in the SAME call (saves a round-trip): the image, the image plus the parsed elements,
the element list alone (no image tokens), or only what the action CHANGED — "changes":
{appeared: [elements with fresh ids], disappeared, changed: [{id, label, before, after} for
states/value], focus?, page?: {before, after}, unchanged: n} from the app's accessibility
information before and after (fails before acting, with the fix, for apps that expose none);
settle_ms (max 5000, "settle_clamped": true if you asked for
more) waits for the UI to update first — use 400–1500 after anything that navigates or
submits, or wait_for_stable() when you don't know how long. observe_region='x,y,w,h' crops
that screenshot to the part you care about (implies observe='screenshot'; far fewer tokens
than the full display; validated before the action). Fails (isError) if the instance
is down, the coordinates are outside the display or a modifier name is unknown (nothing is
clicked then). A failed observation after a successful click is reported as "observed":
false inside an ok result — the click is not repeated.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| count | No | ||
| button | No | ||
| observe | No | none | |
| instance | No | ||
| modifiers | No | ||
| settle_ms | No | ||
| observe_region | No |