Skip to main content
Glama
Chandelier

Chandelier

by acidka

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

NameRequiredDescriptionDefault
dxNo
dyNo
colsNo
refsYes
rowsNo
countNo
gap_xNo
gap_yNo
layerNoname (created if missing; stays inactive) or @active
parentNogroup ref or "layer:Name"
step_xNo
step_yNo
name_suffixNo
to_artboardsNo
from_artboardNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It does disclose the important placement outcome ("copies go into the same container, or layer / parent") and the return value ("Returns the copies"), which is more than nothing. It omits side effects an agent would want: whether new layers are created inactive, whether name collisions are handled, whether the operation is undoable, and how source items are treated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded "Copy items. One of:" followed by a bullet per mode is well organized and free of filler, with only one sentence that does not earn its place. The arrow shorthand is terse to the point of being cryptic for the rows/cols clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter mutation tool with no annotations and no output schema, the description covers the high-value parameters and the destination/return behavior. It still leaves an agent guessing about refs input forms, mode exclusivity, layer-creation side effects, and error behavior when an invalid artboard index is supplied.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 13%, so the description must compensate, and it largely does: it defines to_artboards (indices or "all"), from_artboard as the source artboard, rows/cols with step derived from item size plus gap_x/gap_y or step_x/step_y, count defaulting to 1 offset by dx/dy, and name_suffix with a template example. The remaining gaps are refs (single vs array, and what identifier forms are valid) and that the original occupies cell [0,0] is stated but grid ordering direction is not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Copy items" states a specific verb and resource, and the three-mode breakdown (to_artboards / grid / count+offset) makes the operation concrete. It is distinguishable from siblings like transform_items or arrange_items because duplication rather than positioning is the stated effect, though the description never explicitly contrasts them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The mode list implies which form to pick for each outcome (per-artboard replication vs grid vs simple offset), which is real usage guidance. However there is no statement of when to prefer this over move/transform siblings, no prerequisites, and no note on which modes are mutually exclusive or which arguments each mode requires.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.