Merge scenes and resources by meaning
godot_mergeMerge Godot .tscn, .tres, and project.godot files three-way by semantic structure, resolving node, resource, connection, and property conflicts that line-based Git merges mishandle.
Instructions
A three-way merge of .tscn, .tres and project.godot that knows what the files mean, offline. Git merges them line by line: two branches (or two agents in two worktrees) that each add a node to one scene conflict, or merge into a file Godot cannot load (both gave a new resource the same id, load_steps is off, a node sits under a removed parent). This merges nodes by their path, ext_resources by uid or path, connections by signal, source, target and method, and properties one by one; resource ids of both sides are brought into one numbering and every reference follows; a resource one side removed and the other still uses is kept. Only a property both sides set to different values is a conflict, reported with base, ours and theirs. Without theirs: the files a git merge, rebase or cherry-pick left in conflict (dry run; write: true puts the merged files in the working tree, then you git add them). With theirs (a branch or commit): a preview of merging it into HEAD, before you merge. Never use a text editor on conflict markers in a scene.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "godot_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| files | No | only these res:// files | |
| write | No | write the merged files into the working tree (a merge in progress only; default false: show what it would be) | |
| detail | No | brief (capped lists) or full (everything); default full | |
| prefer | No | the side a conflict takes in the merged file (default ours); the conflict is reported either way | |
| theirs | No | a branch or commit: preview what merging it into HEAD does to the Godot files (nothing is written) |