simulate_key
Simulate keyboard key press or release events in a live Godot game by providing the key code name.
Instructions
Simulate a keyboard key press/release 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 |
|---|---|---|---|
| echo | No | Whether this is an echo/repeat event | |
| keycode | Yes | Key code name (e.g. 'KEY_ENTER', 'KEY_SPACE', 'KEY_A') | |
| pressed | No | Whether pressed (default: true) |