Edit a fabric
clo_edit_fabricRename a project fabric, set its base colour to tint textures, or swap in a .zfab file while keeping existing assignments intact. Update only the fields you need.
Instructions
Change a fabric in the project: rename it, set its base colour (tints any texture), or replace it with a different fabric file while keeping its assignments. Set only the fields you want changed.
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": {
"fabric_index": "<fabric_index>"
},
"name": "clo_edit_fabric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| color | No | Base colour as hex, e.g. "#C0392B". Applied to front, back and side. | |
| fabric_index | Yes | Zero-based fabric index. | |
| replace_with_file | No | Absolute path of a .zfab file to replace this fabric with. |