godot_add_node
Add a new node to an existing Godot scene by specifying the node type, scene path, and parent location within the project.
Instructions
Add a new node of any instantiable Godot node type to an existing saved scene.
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": {
"project_path": "<project_path>",
"scene_path": "<scene_path>",
"node_type": "<node_type>"
},
"name": "godot_add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Path to the Godot project directory or its project.godot file. | |
| scene_path | Yes | Path to the target .tscn file. Absolute, relative, and res:// paths are supported. | |
| node_type | Yes | Godot node class to instantiate, such as Sprite2D, Timer, Control, or AudioStreamPlayer2D. | |
| parent_path | No | Scene-relative node path where the new node should be attached. Use '.' for the root. | . |
| node_name | No | Optional explicit node name. Defaults to the chosen node type. | |
| godot_executable | No | Optional explicit path to the Godot executable or .app bundle. |