Make a pattern from an image
make_pattern_from_imageConverts a public PNG, JPEG or WebP image into a punch needle pattern with the website's pattern converter. Returns the pattern as a stitch grid preview, its colours and the yarn each colour needs in a fine-wool kit and a rug-wool kit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "make_pattern_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Same value as image_url. | |
| size | No | Same value as width. | |
| unit | No | Unit of the width; the default is cm. | |
| image | No | Same value as image_url. | |
| width | No | Finished width of the pattern in the chosen unit: 20 to 2000 mm, 2 to 200 cm or 0.8 to 78.7 in. The default is 20 cm. | |
| colors | No | Same value as colours. | |
| colours | No | Largest number of yarn colours in the pattern, from 2 to 32. The default is 6. | |
| imageUrl | No | Same value as image_url. | |
| image_url | No | Public web address (https) of a PNG, JPEG or WebP image of at most 4 MB. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| view | Yes |