set_material
Apply a material to entities or current selection in SketchUp; missing materials are created, and existing colors change only if requested.
Instructions
Apply a material to entities (entity_ids or the current selection). A missing material is created with color; an EXISTING material keeps its color (unless update_existing=true).
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": {
"material": "<material>"
},
"name": "set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| back_too | No | ||
| material | Yes | ||
| entity_ids | No | Ids from tool results (selection_info, create_*...); only valid in the current SketchUp session. Empty = current selection. | |
| update_existing | No | true = also recolor an EXISTING material (affects EVERY entity that uses it) |