asset.apply_material
Apply material changes to Blender assets and export updated GLB, BLEND, and FBX files. Set base color, roughness, metallic, and alpha while leaving the source file unchanged.
Instructions
Change only allow-listed Principled BSDF values and create new GLB, BLEND, and FBX files.
target is 'all', an exact material name, or an exact object name with exactly one material. base_color accepts normalized RGB or RGBA. Scalar values are 0..1. The input is never overwritten; outputs and logs go into a unique job subfolder.
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": {
"input_path": "<input_path>",
"output_directory": "<output_directory>",
"target": "<target>"
},
"name": "asset.apply_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| target | Yes | ||
| metallic | No | ||
| roughness | No | ||
| base_color | No | ||
| input_path | Yes | ||
| output_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| command | No | ||
| success | Yes | ||
| summary | Yes | ||
| log_path | No | ||
| artifacts | No | ||
| exit_code | No | ||
| operation | Yes | ||
| log_excerpt | No | ||
| operation_id | Yes | ||
| operation_path | No |