add_node
Add a new node to an existing Godot scene by specifying type, name, parent path, and optional properties, using the project and scene paths.
Instructions
Add a node to an existing Godot scene via the GDScript engine.
Args: project_path: Absolute path to the Godot project directory. scene_path: Scene path relative to project. node_type: Godot class name for the new node (e.g. Sprite2D). node_name: Name for the new node. parent_node_path: Node path of the parent (default: 'root'). properties: Optional dict of property_name -> value.
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>",
"node_name": "<node_name>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_name | Yes | ||
| node_type | Yes | ||
| properties | No | ||
| scene_path | Yes | ||
| project_path | Yes | ||
| parent_node_path | No | root |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |