add_node
Add a new node to a Godot scene by specifying node type, name, and optional properties for game development.
Instructions
Add a new 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 |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scenePath | Yes | Scene to modify | |
| nodeType | Yes | Godot node class (e.g. Sprite2D, CollisionShape2D, Camera2D) | |
| nodeName | Yes | Name for the new node | |
| parentNodePath | No | Path of parent node (default: . = root) | |
| properties | No | Optional node properties as key=GDScript-value pairs (e.g. {"position": "Vector2(100, 200)"}) |