transform_items
Transform selected Illustrator items by moving, scaling, rotating, or reflecting them, including group-origin anchoring and step-and-repeat copies.
Instructions
Move / scale / rotate / reflect items (in that order: scale, reflect, rotate, move). dx, dy (session units) · scale (% uniform) or sx, sy (%) · rotate (degrees, positive = clockwise on screen) · reflect "horizontal" | "vertical". origin: anchor of each item's bounds (default center), or a point [x, y]. as_group:true uses the bounds of all items together (e.g. rotate a selection as one). copies: n → step-and-repeat: makes n copies, each one transformed from the previous (e.g. dx:30, copies:5 → a row; rotate:30, copies:11, origin:[cx,cy] → a ring). Returns the copies; without copies returns the items. scale_strokes: scale stroke widths too.
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": {
"refs": "<refs>"
},
"name": "transform_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| sx | No | ||
| sy | No | ||
| refs | Yes | ||
| scale | No | ||
| copies | No | ||
| origin | No | ||
| rotate | No | ||
| reflect | No | ||
| as_group | No | ||
| scale_strokes | No |