Instantiate Prefab
unity_instantiate_prefabInstantiates a prefab from an asset path into the active scene, preserving the prefab link for future overrides.
Instructions
Instantiate a prefab from an asset path into the active scene (Undo-able). Keeps the prefab link so overrides can be applied later.
Args: prefab_path ('Assets/Prefabs/Enemy.prefab'), name override (optional), position/rotation, parent_path (optional). Find prefabs first with unity_list_assets type='Prefab'.
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": {
"prefab_path": "<prefab_path>"
},
"name": "unity_instantiate_prefab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Override instance name (default keeps prefab name) | |
| position | No | World position as [x, y, z] (default 0,0,0) | |
| rotation | No | World rotation euler degrees as [x, y, z] (default 0,0,0) | |
| parent_path | No | Optional hierarchy path of the parent | |
| prefab_path | Yes | Project-relative asset path, e.g. 'Assets/Prefabs/Enemy.prefab' |