editor_add_node
Add a new node of any type to the currently open Godot scene. Specify node type, name, parent, and properties to customize the node.
Instructions
Add a node to the currently open scene in editor.
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": {
"type": "<type>"
},
"name": "editor_add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Node name (auto-generated if omitted) | |
| type | Yes | Node type (e.g. "Sprite2D", "CollisionShape2D") | |
| parent | No | Parent node path | . |
| properties | No | Properties to set |