move_nodes
Reparent or reorder nodes in a Godot scene while keeping each subtree intact, then save once at the end. Rejects root, instanced, inherited, or invalid targets.
Instructions
Move nodes to another parent and/or child position in a scene, each subtree kept whole (owners, groups, connections). Always-array moves, applied in order. Saves once at the end. Returns: results[] per move with success, newNodePath and index read back, or error; warnings leads when a NodePath value no longer leads where it did. Refused per entry: the root, a node inside an instance or inherited, a target inside the node, a name taken at the target. Errors while a runtime session is live.
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": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"moves": "<moves>"
},
"name": "move_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moves | Yes | Moves to apply in order. Each names a node and gives newParentPath, index or both. | |
| scenePath | Yes | Scene file path relative to the project | |
| projectPath | Yes | Path to the Godot project directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| warnings | No |