add_input_action
Add a new input action to a Godot project's Input Map for configuring game controls. Define actions like 'jump' or 'attack' to bind keys later in the editor.
Instructions
Add a new input action to the project's Input Map (with no events bound). Use the Godot editor or set_project_setting to bind keys to it.
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": {
"projectPath": "<projectPath>",
"actionName": "<actionName>"
},
"name": "add_input_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| actionName | Yes | Action name (e.g. "jump", "attack", "ui_cancel") |