move_to_layer
Move selected SVG elements into a named layer—creating it if missing—or into a group/layer by ID, preserving order and visual position.
Instructions
Move elements into a layer (by name; created on top if missing) or into a group/layer by id, at its top or bottom. They keep their relative order and stay visually where they were.
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": {
"ids": "<ids>",
"layer": "<layer>"
},
"name": "move_to_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| layer | Yes | ||
| doc_id | No | ||
| preview | No | ||
| position | No | top |