godot_add_primitive_mesh
Add primitive 3D mesh shapes like boxes, spheres, and cylinders to Godot scenes using MeshInstance3D nodes with customizable parameters and transforms.
Instructions
Add a MeshInstance3D with a built-in PrimitiveMesh resource such as BoxMesh, CylinderMesh, SphereMesh, CapsuleMesh, PlaneMesh, PrismMesh, QuadMesh, or TorusMesh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Path to the Godot project directory or its project.godot file. | |
| scene_path | Yes | Path to the target .tscn file. Absolute, relative, and res:// paths are supported. | |
| mesh_type | Yes | Primitive mesh class to instantiate, such as BoxMesh, CylinderMesh, SphereMesh, CapsuleMesh, PlaneMesh, PrismMesh, QuadMesh, or TorusMesh. | |
| parent_path | No | Scene-relative node path where the new mesh node should be attached. Use '.' for the root. | . |
| node_name | No | Optional explicit MeshInstance3D node name. Defaults to a PascalCase form of the mesh type without a trailing Mesh suffix. | |
| mesh_parameters | No | Optional primitive mesh property overrides such as size, radius, height, or segment counts. | |
| transform | No | Optional Node3D transform fields to apply to the new MeshInstance3D. Vector values can be passed as objects like {x, y, z}. | |
| godot_executable | No | Optional explicit path to the Godot executable or .app bundle. |