assign_fabric_to_pattern
Assign a fabric to a pattern piece by index, with options for current colorway, all colorways unlinked, or all colorways linked.
Instructions
Assign a fabric to a pattern piece.
Args: fabric_index: Zero-based index of the fabric. pattern_index: Zero-based index of the pattern piece. assign_option: 1=current colorway only, 2=all colorways (unlinked), 3=all colorways (linked).
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_index": "<pattern_index>"
},
"name": "assign_fabric_to_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fabric_index | Yes | ||
| assign_option | No | ||
| pattern_index | Yes |