Click
clickScrolls an element into view and performs a human-path pointer press, returning what resulted or what covers it; also supports canvas-text caret placement and view-coordinate targeting.
Instructions
Scrolls the element into view, moves the pointer to it along a human path and clicks; answers with what the click led to and what changed. A covered element is refused with what covers it. In text a canvas shows (Google Docs), clicks at a place in it (text_before, text_after): between two characters it puts the caret there. Or clicks at a point of the view (x, y). Whatever is at a place or point takes the click, and nothing scrolls.
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 |
|---|---|---|---|
| x | No | A point to click instead of an element, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image. | |
| y | No | Its y, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image. | |
| id | No | An element id from a listing, such as a12. | |
| count | No | 2 for a double click (a word), 3 for a triple (a paragraph). | |
| quiet | No | Answer without the changed elements (what opened on top, the focus and announcements stay); for pages such as Google Docs where every key changes much of the listing. | |
| button | No | ||
| modifiers | No | Keys held during the click (Shift extends a selection). | |
| text_after | No | The text that begins at the place. | |
| snapshot_id | No | The snapshot whose image the point was read off (s3): the point is then in that image's pixels, which view's note gives when they are not the view's CSS pixels. It must be of this tab's current page. | |
| text_before | No | Aim by the canvas text in view: the place where this text ends (with text_after, where text_after begins). It must read so in exactly one place; whitespace counts as one space. |