Upgrade a Godot 3 project to Godot 4
port_upgradeConverts a Godot 3.x project into a Godot 4 copy with API, scene, shader, and project-setting updates, while reporting items that need manual migration.
Instructions
Converts a Godot 3.x project to Godot 4 as a COPY (the source is never modified): the official rename table for classes, builtin types, functions, properties, signals, enums, colors, theme overrides, project settings and shader names; export/onready/tool → @annotations with typed hints; yield → await; instance → instantiate; string connect/disconnect/emit_signal → signal.connect(callable)/emit; PoolArray → PackedArray; OS time functions → Time; .shader → .gdshader (references updated); scenes to format 3 with renamed node types and properties; project.godot to config_version 5 with the input map keys. What cannot be converted mechanically is listed with file and line and how to do it: setget, funcref, move_and_slide with arguments, var velocity in CharacterBody scripts, Tween nodes, binds, RPC keywords, networking, SCREEN_TEXTURE, window functions. action:"check" only reports. Follow with re_apicheck on the copy and open it in Godot 4.
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": {
"path": "<path>"
},
"name": "port_upgrade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | apply: new or empty folder for the copy (default: workspace/upgrades/<name>-godot4). | |
| path | Yes | Godot 3 project folder (has project.godot with config_version=4). | |
| limit | No | Max items per list (default 300). | |
| action | No | check (default): report what would change. apply: write the converted copy. |