design_trace_regions
Segments an image into color regions using k-means clustering and returns dominant colors and region masks, optionally creating a trace layer for design work.
Instructions
Segment the image into color regions using k-means clustering. Returns dominant colors and region masks.
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": "design_trace_regions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of color clusters (default: 5). | |
| sourceId | No | Reference image asset ID (default: current canvas). | |
| createLayer | No | Create a trace layer (default: true). |