Reparent Node
godot_reparent_nodeMove 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.
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": {
"node_path": "<node_path>",
"new_parent_path": "<new_parent_path>"
},
"name": "godot_reparent_node"
}
}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 |