game_touch
Simulate touch press, release, and drag gestures in Godot to test mobile input and automate touch interactions.
Instructions
Simulate touch press/release/drag and gestures
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": {
"action": "<action>",
"x": "<x>",
"y": "<y>"
},
"name": "game_touch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Touch X position | |
| y | Yes | Touch Y position | |
| toX | No | Drag end X (for drag) | |
| toY | No | Drag end Y (for drag) | |
| index | No | Touch index. Default: 0 | |
| steps | No | Drag steps. Default: 10 | |
| action | Yes | Action: press, release, drag |