Set Material
set_materialCreate or update a material and assign it to an object or selected faces, controlling color, texture, emission, and surface properties. Apply after shaping to update all users of that material.
Instructions
Create or update a material, optionally on an object or its picked faces; all its users change; '' clears an image or vertex_color. Returns: its values, slot, faces. WHEN TO CALL: after shaping.
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": {
"material": "<material>"
},
"name": "set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | Below 1 blends | |
| faces | No | Indices from get_mesh | |
| facing | No | World direction | |
| object | No | Mesh to put it on | |
| material | Yes | Created if missing | |
| metallic | No | 0 to 1 | |
| roughness | No | 0 to 1 | |
| tolerance | No | Degrees off facing (30) | |
| alpha_mode | No | With an image or vertex_color, their alpha | |
| base_color | No | [r, g, b(, a)] linear, or '#RRGGBB' sRGB | |
| alpha_cutoff | No | clip below (0.5) | |
| normal_image | No | Image file | |
| vertex_color | No | Color attribute as base colour | |
| emission_color | No | Alone sets strength 1 | |
| emission_image | No | Image file | |
| backface_culling | No | Hide back faces (true for new) | |
| base_color_image | No | Image file | |
| emission_strength | No | Above 1 glows |