send_mouse_click
Simulate mouse click events at specified coordinates in Godot, offering choice of button and double-click for automated UI testing.
Instructions
Send a mouse click (press+release) at specific coordinates. For cursor movement, use send_mouse_motion. For dragging, use send_mouse_drag. Requires run_interactive.
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": "send_mouse_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate in viewport pixels. | |
| y | Yes | Y coordinate in viewport pixels. | |
| button | No | Mouse button to click. Default: "left". | |
| doubleClick | No | Whether this is a double click. Default: false. |