content_set_material_instance_parameter
Sets a validated parameter override on an existing MaterialInstance and saves the asset, so you can update material values without editing the base material.
Instructions
Sets one validated parameter override on an existing MaterialInstance and saves the asset.
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": {
"materialInstanceId": "<materialInstanceId>",
"parameterName": "<parameterName>",
"value": "<value>"
},
"name": "content_set_material_instance_parameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value matching the parameter's declared type. | |
| parameterName | Yes | Existing public parameter name on the base material. | |
| materialInstanceId | Yes | FlaxEngine.MaterialInstance asset GUID from content_search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | Yes | ||
| mainThreadId | Yes | ||
| baseMaterialId | Yes | ||
| baseMaterialPath | Yes | ||
| materialInstanceId | Yes | ||
| materialInstancePath | Yes |