apply_material
Apply a procedural material preset like metal, plastic, rubber, glass, or wood to a mesh object, optionally setting a custom color.
Instructions
Apply a procedural material preset (metal, plastic, rubber, glass, wood) to a mesh.
Args: object_name: Mesh object name in the scene. preset: One of the presets from blender_status.materials. color: Optional RGB or RGBA floats 0-1. blend_file: Open this file first (forces headless). save_as: Save after applying. target: "auto", "live" or "headless".
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>",
"preset": "<preset>"
},
"name": "apply_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| preset | Yes | ||
| target | No | auto | |
| save_as | No | ||
| blend_file | No | ||
| object_name | Yes |