add_node
Adds a new node to an existing Godot scene, letting you specify its type, name, parent, and properties for scene setup or modification.
Instructions
Add a node to an existing 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": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"nodeType": "<nodeType>",
"nodeName": "<nodeName>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeName | Yes | Name for the new node | |
| nodeType | Yes | Type of node to add (e.g., Sprite2D, CollisionShape2D) | |
| scenePath | Yes | Scene file path (relative to project) | |
| properties | No | Optional properties to set on the node | |
| projectPath | Yes | Godot project path | |
| parentNodePath | No | Path to the parent node (e.g., "root" or "root/Player") |