simulate_key
Send keyboard events to the active game using key names like W, SPACE, or ESCAPE, enabling automated input simulation and gameplay testing.
Instructions
Send a keyboard event to the running game by key name such as W, SPACE, ESCAPE or F1 (dropped if no game is running)
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": {
"keycode": "<keycode>"
},
"name": "simulate_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | ||
| ctrl | No | ||
| shift | No | ||
| keycode | Yes | ||
| pressed | No |