layers
List, add, update, remove, reorder, or activate layers in the active Adobe Illustrator document, including sublayers, visibility, locking, and print options.
Instructions
Layers of the active document. Names may be "Parent/Child" paths; a bare name is looked up at any depth; "@active" / "@first" name the active / top layer; "Layer 1" also finds the localised default layer. action: "list" (tree with items, visible, locked, printable, color, sublayers) · "add" (name; parent for a sublayer; position; props) · "update" (name → new_name and props) · "remove" (name; refuses if it has items unless force:true) · "reorder" (name, position) · "activate" (name). Props: visible, locked, printable (false = non-printing), template, dim_images, color (layer highlight, "#rrggbb"), opacity. position: "top" | "bottom" | "above:Name" | "below:Name".
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": "layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| color | No | ||
| force | No | ||
| action | No | ||
| locked | No | ||
| parent | No | ||
| opacity | No | ||
| visible | No | ||
| activate | No | add: make it the active layer (default true) | |
| new_name | No | ||
| position | No | ||
| template | No | ||
| printable | No | ||
| dim_images | No |