Turn a photo into a cross stitch pattern
create_cross_stitch_patternTurn a photo into a cross stitch pattern preview with real DMC thread colours. Returns a preview image of the stitched result, the thread list (DMC numbers and stitch counts), the stitch count and the finished size. Give exactly one of image_url, photo_id or image_base64. Show the preview image to the person. If they want to stitch it for real, offer the custom kit (order_custom_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": "create_cross_stitch_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kit_size | No | Kit size in inches, width x height, e.g. "12x16". Orientation is matched to the photo automatically. Call get_kit_prices to see every size. Default: chosen from the photo shape. | |
| photo_id | No | Photo code (ph_...) from the upload page. | |
| image_url | No | Public http(s) URL of a JPG or PNG photo. | |
| max_colors | No | Maximum number of DMC thread colours. Default 30. | |
| fabric_count | No | Aida fabric count (stitches per inch). 14 = more detail, 11 = bigger stitches, easier for beginners. Default 14. | |
| image_base64 | No | JPG or PNG bytes as base64 (a data: URL is also accepted). Max 10 MB. |