assign_material
Assign an existing material to a Blender object by object and material name, optionally targeting a specific material slot to replace it or append a new slot.
Instructions
Assign an existing material to an object.
Parameters:
object_name: Name of the target object
material_name: Name of the material to assign
slot_index: Optional material slot index to replace (appends if omitted)
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": {
"object_name": "<object_name>",
"material_name": "<material_name>"
},
"name": "assign_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot_index | No | ||
| object_name | Yes | ||
| material_name | Yes |