add_node
Add a node to a Godot scene by specifying its type, name, parent path, initial properties, and groups, enabling direct scene construction.
Instructions
Add a node to a 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": {
"scene_path": "<scene_path>",
"name": "<name>",
"type": "<type>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New node name | |
| type | Yes | Node type (e.g. "CharacterBody2D", "Timer", "CollisionShape3D") | |
| groups | No | Initial groups | |
| properties | No | Initial properties | |
| scene_path | Yes | Path to .tscn file | |
| parent_path | No | Parent node path (default: root level) | . |