Change project settings, input map or autoloads
godot_project_editSafely change project.godot settings, input actions, and autoloads without opening the editor, touching only the target lines. Preview the diff first, then write and review errors.
Instructions
Change project.godot safely without the editor, touching only the lines of that entry. op and its fields: set (key, value; name and type checked against the Godot 4.7 reference), unset (key), input_add (action, events, deadzone), input_remove (action), autoload_add (name, file, global; the file must be a Node script or a scene, the name must not clash with a class), autoload_remove (name). Events: Key:Space, Key:Ctrl+S, Mouse:Left, JoyButton:A, JoyAxis:left_y-. Without write it returns the diff and warnings; with write: true it writes and reports the review errors before and after (an error result when there are more after). A missing field or a refused change (bad event, unknown action, name clash) is an error and writes nothing. Use it instead of editing project.godot by hand. For .tscn files use godot_scene_edit; to rename an action or autoload everywhere, godot_rename.
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": {
"op": "<op>"
},
"name": "godot_project_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | what to change | |
| key | No | set/unset: the setting path, e.g. display/window/size/viewport_width | |
| file | No | autoload_add: res:// path of the script or scene | |
| name | No | autoload_add/autoload_remove: the autoload name, e.g. Game | |
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| value | No | set: the value, e.g. 1920, true, 1.5, a text, res://main.tscn or Vector2i(1920, 1080) | |
| write | No | write the change (default false: show the diff only) | |
| action | No | input_add/input_remove: the action name, e.g. jump | |
| events | No | input_add: events such as Key:Space, Mouse:Left, JoyButton:0, JoyAxis:1- | |
| global | No | autoload_add: make a global variable (default true) | |
| deadzone | No | input_add: deadzone of a new action (default 0.2) |