prefab_instantiate
Create prefab instances in Unity scenes by specifying asset paths and positions. This tool adds prefab objects to the current scene with customizable names and coordinates.
Instructions
Instantiate a prefab in the current scene. Creates a prefab instance linked to the original asset.
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": "prefab_instantiate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefabPath | Yes | Asset path to the prefab (e.g. Assets/Prefabs/Tree.prefab) | |
| name | No | Custom name for the instance | |
| x | No | X position | |
| y | No | Y position | |
| z | No | Z position |