game_gamepad
Send gamepad button or axis input events to simulate controller actions. Specify type, index, value, and optional device.
Instructions
Send gamepad button or axis input event
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": {
"type": "<type>",
"index": "<index>",
"value": "<value>"
},
"name": "game_gamepad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | "button" or "axis" | |
| index | Yes | Button or axis index | |
| value | Yes | Value: 0/1 for buttons, -1.0 to 1.0 for axes | |
| device | No | Gamepad device index. Default: 0 |