duplicate_items
Copy items to artboards, rows, columns, or offset counts within Illustrator. Duplicate objects into the same container or a target layer and return the new copies.
Instructions
Copy items. One of:
to_artboards: [indices] | "all" → one copy per artboard at the SAME position relative to the artboard (source artboard = where the item is, or from_artboard); name_suffix e.g. "-{artboard}".
rows, cols (grid; step = the items' size + gap_x/gap_y, or step_x/step_y) — the original is cell [0,0].
count (default 1) copies offset by dx, dy each. Copies go into the same container, or layer / parent. Returns the copies.
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": "duplicate_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| cols | No | ||
| refs | Yes | ||
| rows | No | ||
| count | No | ||
| gap_x | No | ||
| gap_y | No | ||
| layer | No | name (created if missing; stays inactive) or @active | |
| parent | No | group ref or "layer:Name" | |
| step_x | No | ||
| step_y | No | ||
| name_suffix | No | ||
| to_artboards | No | ||
| from_artboard | No |