material_set_field
Set a material slot's number, boolean, enum, or color field by name and slot, using field names from material_get; use the texture-specific tool for texture fields.
Instructions
Set a number, boolean, enum or color field of a material slot (field names from material_get). For texture fields use material_set_texture.
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": {
"name": "<name>",
"slot": "<slot>",
"field": "<field>",
"value": "<value>"
},
"name": "material_set_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slot | Yes | ||
| field | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||