godot_reparent_node
Move a node to a different parent within a Godot scene while preserving its world transform. Use this tool to reorganize scene hierarchies without affecting node positioning.
Instructions
Moves a node to a new parent within the same scene, preserving its world transform.
Args:
node_path (string): Node to move e.g. "/root/Main/Enemy"
new_parent_path (string): Destination parent e.g. "/root/Main/EnemyGroup"
scene_path (string, optional): Scene to modify. Defaults to active scene.
keep_global_transform (boolean, optional): Whether to preserve world-space transform (default: true)
Returns: New node path after reparenting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | Node to reparent | |
| new_parent_path | Yes | Destination parent node path | |
| scene_path | No | Scene to modify. Omit for active scene. | |
| keep_global_transform | No | Preserve world-space transform |