game_key_press
Simulates keyboard input by sending a key press or named input action to the running Godot game, so you can test or automate gameplay controls without manual interaction.
Instructions
Send a key press or input action to the running game
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "game_key_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key name (e.g. "W", "Space", "Escape", "Enter") | |
| action | No | Godot input action name (e.g. "move_forward", "ui_accept") | |
| pressed | No | Press (true) or release (false). Default: true (auto-release) |