prefab_create
Convert a Unity scene GameObject into a reusable prefab asset, saving it as a .prefab file for consistent object management.
Instructions
Create a prefab asset from an existing scene GameObject. The prefab is saved as a .prefab file.
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": {
"name": "<name>"
},
"name": "prefab_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the scene GameObject to convert to prefab | |
| path | No | Folder to save the prefab in (default: 'Assets') | Assets |
| prefabName | No | Custom name for the prefab file (default: same as GameObject) |