runtime_input
Simulate keyboard input in a running Godot game by injecting key press or release events.
Instructions
Inject a key input event into 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": "runtime_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | "press" or "release". | press |
| keycode | Yes | Godot keycode (e.g. KEY_W=87, KEY_SPACE=32). See https://docs.godotengine.org/en/stable/classes/class_@globals.html#enum-keymodifierkeycode |