unity_asset_instantiate_prefab
Instantiates a prefab asset into the current Unity scene. Specify position, rotation, and parent to control placement.
Instructions
Instantiate a prefab into the current scene.
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": "unity_asset_instantiate_prefab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the instantiated object | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| parent | No | Parent GameObject path (optional) | |
| position | No | ||
| rotation | No | ||
| prefabPath | Yes | Path to the prefab asset (e.g. 'Assets/Prefabs/Enemy.prefab') |