send_joypad_motion
Send analog gamepad stick or trigger axis events with float precision to simulate controller input in a running Godot game.
Instructions
Send a gamepad analog stick or trigger axis event. Simulates analog input with float precision. For input actions, prefer send_input. 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": {
"axis": "<axis>",
"value": "<value>"
},
"name": "send_joypad_motion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | The axis name: "left_x", "left_y" (left stick), "right_x", "right_y" (right stick), "trigger_left", "trigger_right" (analog triggers). | |
| value | Yes | Axis value. Sticks: -1.0 to 1.0 (left/up = negative, right/down = positive). Triggers: 0.0 to 1.0. | |
| device | No | Controller device index (default: 0). Use for multi-controller testing. |