add_node
Use this tool to insert a new node into a Godot scene. Specify the project and scene paths, node type, name, and optional properties to customize the node. Integrates with Godot MCP for streamlined scene editing.
Instructions
Add a node to an existing scene
Input Schema
Name | Required | Description | Default |
---|---|---|---|
nodeName | Yes | Name for the new node | |
nodeType | Yes | Type of node to add (e.g., Sprite2D, CollisionShape2D) | |
parentNodePath | No | Path to the parent node (e.g., "root" or "root/Player") | root |
projectPath | Yes | Path to the Godot project directory | |
properties | No | Optional properties to set on the node | |
scenePath | Yes | Path to the scene file (relative to project) |
Input Schema (JSON Schema)
{
"properties": {
"nodeName": {
"description": "Name for the new node",
"type": "string"
},
"nodeType": {
"description": "Type of node to add (e.g., Sprite2D, CollisionShape2D)",
"type": "string"
},
"parentNodePath": {
"default": "root",
"description": "Path to the parent node (e.g., \"root\" or \"root/Player\")",
"type": "string"
},
"projectPath": {
"description": "Path to the Godot project directory",
"type": "string"
},
"properties": {
"description": "Optional properties to set on the node",
"type": "object"
},
"scenePath": {
"description": "Path to the scene file (relative to project)",
"type": "string"
}
},
"required": [
"projectPath",
"scenePath",
"nodeType",
"nodeName"
],
"type": "object"
}