create_prefab_from_entity
Save any existing entity as a reusable prefab file in your project. The current level stays unmodified, so you can instantiate the saved prefab when needed.
Instructions
Write a prefab file to disk from an existing entity.
The path is relative to the project root. The level is not modified;
use instantiate_prefab afterwards to place the saved 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": {
"entity_id": "<entity_id>",
"prefab_path": "<prefab_path>"
},
"name": "create_prefab_from_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| prefab_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |