set_input_action
Create or replace a Godot input action and its full binding list, including key, mouse, and joypad events, while preserving an existing deadzone when omitted.
Instructions
Create or replace a configured action and its complete binding list. Preserves deadzone when omitted on an existing action. Supports key, mouse button and joypad bindings, dryRun and expectedHash.
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>",
"action": "<action>",
"events": "<events>"
},
"name": "set_input_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| dryRun | No | ||
| events | Yes | ||
| deadzone | No | ||
| projectPath | Yes | ||
| expectedHash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| saved | Yes | ||
| stored | No | ||
| actions | No | ||
| section | No | ||
| setting | No | ||
| truncated | No | ||
| expression | No | ||
| sourceHash | Yes | ||
| configuredOnly | No |