create_gameobject
Creates a Unity GameObject (primitive or empty) with position, rotation, scale, and parent options to set up or prototype scenes.
Instructions
Create a new GameObject in the Unity scene. Supports primitives (Cube, Sphere, Cylinder, Capsule, Plane, Quad) or empty objects. Position and Euler rotation are world-space. Scale is applied before world-preserving parenting; resulting localScale can differ. Completion includes an observed transform receipt on current bridges. Requires BanterMCPBridge extension to be installed and Unity Editor running.
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": {
"name": "<name>"
},
"name": "create_gameobject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new GameObject | |
| scale | No | Scale as [x, y, z] | |
| parentId | No | Preferred: parent globalObjectId from scene-hierarchy.json | |
| position | No | Position as [x, y, z] | |
| rotation | No | Rotation in euler angles as [x, y, z] | |
| parentPath | No | Path to parent object (e.g., 'ParentObject' or 'Parent/Child') | |
| primitiveType | No | Type of primitive: Cube, Sphere, Cylinder, Capsule, Plane, Quad, or empty string for empty object |