split_into_layers
Separate an image into independent layers by placing seed points on each distinct area; parts grow until sharp color changes so each can be edited or animated alone.
Instructions
Separate a picture into parts on their own layers, like armour and meadow,
so each can be edited or animated alone. seeds are points on each part:
[{"name": "armour", "x": 90, "y": 40}, {"name": "meadow", "x": 5, "y": 5}].
The first part named ends up on top. Each part grows from its seeds and stops where colours change sharply, so
put a seed on every distinct area of a part (a part may have many seeds).
If a part leaks into another, add seeds where it leaked and run it again.
layer defaults to the active one, which is hidden afterwards unless
hide_source is false. Check the result with look and layer=.
One undo step. Headless: pass file.
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": {
"seeds": "<seeds>"
},
"name": "split_into_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| frame | No | ||
| layer | No | ||
| seeds | Yes | ||
| hide_source | No |