replace_node_type
Replaces a Godot node with a different type while preserving its children and position, enabling quick node type changes without rebuilding the scene subtree.
Instructions
Replace a node with a new node of a different type (preserving children and position).
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_type": "<new_type>"
},
"name": "replace_node_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_type | Yes | Godot class to replace it with | |
| node_path | Yes | Path of the node to replace |