pattern_edit_points
Move outline points of a pattern piece to adjust its shape. Use absolute or relative coordinates for precise edits; corner points only, so use for straight-edged pieces or small tweaks.
Instructions
Move outline points of a piece. moves: [{"point": i, "x": .., "y": ..}] absolute or [{"point": i, "dx": .., "dy": ..}] relative (mm, 2D pattern space). Use pattern_info to see point indices/positions. Only corner points are indexed; curve (spline) points on an edge stay where they are, so moving corners of a curved hem distorts it. For built garments prefer garment_rebuild({"length": ...}); use this for straight-edged pieces or small tweaks, then simulate.
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": "<pattern>",
"moves": "<moves>"
},
"name": "pattern_edit_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moves | Yes | ||
| pattern | Yes |