Assign a fabric to patterns
clo_assign_fabricAssign an existing project fabric to selected pattern pieces or all pieces, with optional colorway scope, to update garment materials before simulation or export.
Instructions
Apply a fabric already in the project to pattern pieces.
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>",
"pattern_indices": "<pattern_indices>"
},
"name": "clo_assign_fabric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Which colorways receive the change (default all-colorways-linked). | |
| fabric_index | Yes | Zero-based fabric index. | |
| pattern_indices | Yes | Pattern indices, or "all". |