simulate_key
Send keyboard key press or release events to a running Godot game with optional Ctrl, Alt, and Shift modifiers to test controls and gameplay interactions.
Instructions
Simulate a keyboard key event in the running game.
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 | Hold Alt modifier | |
| ctrl | No | Hold Ctrl modifier | |
| shift | No | Hold Shift modifier | |
| keycode | Yes | Key constant name (e.g. KEY_SPACE) | |
| pressed | No | true = press, false = release (default: true) |