material_assign
Assign a material to a Blender object by name, either appending a new material slot or replacing an existing one.
Instructions
Assign a material to an object.
Args: object_name: Target object material_name: Material name (must exist in bpy.data.materials) slot_index: Material slot (-1 = append new slot, 0+ = replace slot)
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": "material_assign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot_index | No | ||
| object_name | Yes | ||
| material_name | Yes |