add_node
Add new nodes to the Godot scene tree by specifying parent path, node type, name, and optional properties.
Instructions
Add a new node to the scene tree
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": {
"parent_path": "<parent_path>",
"type": "<type>",
"name": "<name>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new node | |
| type | Yes | Node type name (e.g. 'Sprite2D', 'CharacterBody3D') | |
| properties | No | Optional property key-value pairs | |
| parent_path | Yes | Parent node path (e.g. 'Player' or '' for root) |