assets-prefab-instantiate
Instantiate a prefab in the current active Unity scene by specifying the prefab asset path and a target GameObject path. Set position, rotation, scale, and local space. Use with 'assets-find' to locate prefabs.
Instructions
Instantiates prefab in the current active scene. Use 'assets-find' tool to find prefab assets in the project.
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": {
"prefabAssetPath": "<prefabAssetPath>",
"gameObjectPath": "<gameObjectPath>"
},
"name": "assets-prefab-instantiate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefabAssetPath | Yes | Path to the prefab asset. Example: "Assets/Prefabs/MyPrefab.prefab" | |
| gameObjectPath | Yes | GameObject path in the current active scene. | |
| position | No | Spawn position. SCHEMA: {"x":0,"y":0,"z":0} | |
| rotation | No | Spawn rotation (Euler angles). SCHEMA: {"x":0,"y":0,"z":0} | |
| scale | No | Scale. SCHEMA: {"x":1,"y":1,"z":1} | |
| isLocalSpace | No | World or Local space of transform. | false |