click_at_coordinates
Clicks a web page at specific X/Y viewport coordinates, enabling precise interaction with elements found visually in a screenshot, including mapping coordinates from resized image dimensions.
Instructions
Click at (x, y) coordinates in the viewport. Use take_screenshot first to visually locate the target element and determine its coordinates. If coordinates were obtained from a resized screenshot, set relative_by_width/height to the screenshot dimensions to map them back.
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": {
"session_id": "<session_id>",
"x": "<x>",
"y": "<y>"
},
"name": "click_at_coordinates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X pixel coordinate. | |
| y | Yes | Y pixel coordinate. | |
| session_id | Yes | Session ID from start_browser. | |
| relative_by_width | No | Width of the resized screenshot the coordinates came from. | |
| relative_by_height | No | Height of the resized screenshot the coordinates came from. |