Edit a pattern piece
clo_edit_patternModify an existing pattern piece by changing only selected properties, such as name, position, flip, fabric, layer, grain, mesh density, or 3D visibility and freeze state.
Instructions
Change properties of an existing pattern piece. Set only the fields you want changed: rename, move in the 2D window, flip, re-place on the avatar, change fabric, layer, grain, mesh density, or freeze/hide it in 3D.
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": {
"pattern_index": "<pattern_index>"
},
"name": "clo_edit_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip | No | Mirror the piece in place. | |
| name | No | ||
| layer | No | Collision layer; higher layers sit outside lower ones. | |
| center | No | Move the piece so its centre is here in the 2D window (mm). | |
| freeze | No | Freeze the piece so simulation does not move it. | |
| hide_3d | No | Hide the piece in the 3D window. | |
| fabric_index | No | Zero-based fabric index. | |
| pattern_index | Yes | Zero-based pattern index. | |
| grain_direction | No | Grain line angle in degrees. | |
| arrangement_point | No | Arrangement point on the avatar, by name (e.g. "Body_Front_Center_2", "Leg_Skirt_Back", "Arm_Outside_1_L") or index. See clo_list_arrangement_points. | |
| particle_distance | No | Mesh resolution in mm (default 20; smaller is finer and slower). |