create_pattern
Input vertex points to create a pattern piece, returning outline lines for sewing, hemming, and topstitching.
Instructions
Create a new pattern piece from vertex points.
Args: points: List of [x, y] or [x, y, type] coordinates in mm. Type: 0=straight (default), 2=spline, 3=bezier. Example: [[0,0], [100,0], [100,200], [0,200]]
Returns the new pattern_index and its outline lines (line_index, start, end, length), so you can sew, hem or topstitch without looking the piece up.
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": {
"points": "<points>"
},
"name": "create_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes |