set_color
Change an object's color in a JupyterCAD document by specifying its name and a hex color value, updating the 3D model.
Instructions
Set the color of an object.
:param name: The name of the object. :param value: The color in hex format (e.g., "#FF5733").
Warning: This tool will update the JCAD document at the given jcad_path.
To understand the current state of the document, you MUST first use the 'get_current_cad_design' tool.
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": {
"jcad_path": "<jcad_path>",
"name": "<name>",
"value": "<value>"
},
"name": "set_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | Yes | ||
| jcad_path | Yes |