Nodes
nodeAdd, edit, and inspect scene objects in the Godot editor with undoable changes and warnings for setup mistakes.
Instructions
Add, edit and inspect nodes in the edited scene. Every change is undoable (Ctrl+Z) and saved. Build whole subtrees in one 'add' via children. Returned 'warnings' flag setup mistakes (missing collision shapes, textures...).
Actions:
add: {type, name?, parent?='.', props?, script?, groups?, index?, children?: [same spec...]} or {nodes: [specs], parent?}. type = class (CharacterBody2D), class_name, res://x.gd or res://x.tscn (instance).
set: {path | paths[], props: {name: value}} set properties (sub-properties like 'position:x' allowed).
get: {path, props?: [names], all?} type, inheritance, script, non-default props (or the requested ones), children, groups, signal connections, warnings.
delete: {path | paths[]}
duplicate: {path, name?, parent?, count?, offset?: [x,y]} copies (with offset per copy, great for rows of platforms/coins).
move: {path, new_parent?, index?, keep_global_transform?=true} reparent and/or reorder.
rename: {path, name}
find: {name?: glob, type?, group?, script?, under?} search nodes.
call: {path, method, args?, property?} call a method in the editor (e.g. curve.add_point via property='curve').
change_type: {path, type, keep_script?} swap a node's class keeping children/compatible props (works on the root too).
add_to_group: {path, group}
remove_from_group: {path, group}
select: {path | paths[]} select in the editor (shows it to the user).
selection: {} what the user has selected — use it to resolve 'this node'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Method arguments. | |
| name | No | Node name / name glob for find. | |
| path | No | Node path relative to the scene root ('.' = root, 'Player/Sprite2D', '%Unique'), or a res:// file path, depending on the action. | |
| type | No | Node class, class_name, res://script.gd or res://scene.tscn. | |
| group | No | Group name. | |
| index | No | Child index. | |
| nodes | No | Several node specs to add under 'parent'. | |
| paths | No | Several node paths. | |
| props | No | Property map. Values are coerced to the property type: numbers, [x,y], 'Vector2(1,2)', '#ff8800', 'res://file', {"type":"RectangleShape2D","size":[32,32]} for new resources, enum names as strings. | |
| scene | No | res:// scene to operate on; opened in the editor if needed. Defaults to the currently edited scene. | |
| action | Yes | What to do. See the tool description for each action's parameters. | |
| method | No | Method name. | |
| parent | No | Parent node path (default '.'). | |
| children | No | Child node specs: {type, name?, props?, script?, children?}. | |
| new_parent | No | New parent path. |