assign_material
Attach a material to a Blender object, replacing a single existing material or adding an unused slot when multiple materials are present.
Instructions
Assign a material to an object.
An object with no material, or a single one (like the default cube's "Material"), takes the new material on every face. An object that already has several materials keeps them and gains an extra slot that no face uses yet.
Args: object_name: Name of the target object. material_name: Name of the material to assign.
Returns: Dict with the slot used and the action: "assigned", "replaced" (with the replaced material's name), "added_slot" or "already_assigned".
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 |
|---|---|---|---|
| object_name | Yes | ||
| material_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||