input_setup_action
Define a custom input action and assign keyboard keys to bind it for use in Godot game projects.
Instructions
Set up an input action with key bindings in the project's input map.
Category: Input
Args: project_path: Path to the Godot project directory action_name: Name of the input action (e.g., "jump", "move_left") keys: List of key strings to bind (e.g., ["Space", "W", "Ctrl+S"]) Supported keys: A-Z, 0-9, F1-F12, Space, Enter, Tab, Escape, Arrow keys (Up, Down, Left, Right), and modifiers (Ctrl+, Alt+, Shift+, Meta+)
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": {
"project_path": "<project_path>",
"action_name": "<action_name>",
"keys": "<keys>"
},
"name": "input_setup_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| action_name | Yes | ||
| keys | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |