content_create_material_instance
Creates a MaterialInstance asset from a base surface material and atomically applies validated parameter overrides for live Flax Engine content.
Instructions
Creates a MaterialInstance asset from a live surface material and applies validated parameter overrides atomically.
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": {
"relativePath": "<relativePath>",
"baseMaterialId": "<baseMaterialId>",
"parameters": "<parameters>"
},
"name": "content_create_material_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | Yes | Parameter overrides keyed by public parameter name. | |
| relativePath | Yes | Destination path relative to Content/, ending in .flax. | |
| baseMaterialId | Yes | Base FlaxEngine.Material GUID from content_search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | Yes | ||
| mainThreadId | Yes | ||
| baseMaterialId | Yes | ||
| baseMaterialPath | Yes | ||
| materialInstanceId | Yes | ||
| materialInstancePath | Yes |