set_material
Paint a SketchUp entity by ID with a named color to apply its material. Use red, blue, gray, black, and other supported names.
Instructions
Paint an entity with a named colour.
Supported names: red, green, blue, yellow, cyan, magenta, white, black,
brown, orange, gray. For any other colour use eval_ruby with
Sketchup::Color.new(r, g, b).
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": {
"id": "<id>",
"material": "<material>"
},
"name": "set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| material | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |