instantiate_prefab
Spawn a Unity prefab into the active scene from an asset path, with optional position, rotation, scale, parent, and name settings.
Instructions
Instantiate a prefab in the Unity scene. Use the full asset path like "Assets/Prefabs/MyPrefab.prefab". Requires BanterMCPBridge extension.
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": {
"prefabPath": "<prefabPath>"
},
"name": "instantiate_prefab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional: rename the instantiated object | |
| 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 | |
| prefabPath | Yes | Asset path to the prefab (e.g., 'Assets/Prefabs/House.prefab') |