simulate_input
Simulate keyboard or controller input to trigger game actions like movement, firing, jumping, and special moves in a running Broforce game, enabling automated testing and gameplay manipulation.
Instructions
Simulate keyboard/controller input
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>"
},
"name": "simulate_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of times to press the key (optional, cannot be used with duration) | |
| action | Yes | Input action (up, down, left, right, fire, jump, special, highFive, gesture, sprint, start, escape) | |
| player | No | Player number (0-3, default: 0) | |
| duration | No | Hold duration in milliseconds (optional) | |
| interval | No | Milliseconds between presses when count > 1 (default: 200) |