instantiate_prefab
Place a prefab asset into the current O3DE level, optionally at a set position or under a parent object.
Instructions
Instantiate a prefab in the current level.
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": "instantiate_prefab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| parent_id | No | ||
| prefab_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |