Skip to main content
Glama
Chandelier

Chandelier

by acidka

modify_items

Batch-edit multiple Illustrator items in one call: apply shared or per-item geometry, fill, stroke, opacity, and visibility settings to reduce repetitive changes.

Instructions

Change many items in one call. refs + props apply the same props to all; items:[{ref, …props}] gives per-item values (top-level props are shared defaults). Geometry: x, y (top-left), w, h, keep_ratio, anchor, bounds, scale_strokes. Appearance: fill, stroke (colour or "none"), stroke_width (pt), dash (pt; [] = solid), cap, join, opacity, blend, graphic_style (applied first); name, note, hidden, locked. On groups, fill/stroke go to every path and text inside. Locked items need locked:false. For text attributes use edit_text; for rotation/scaling by factors use transform_items. Returns {count, items:[{uuid, name, type, box}]}.

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": "modify_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
hNo
wNo
xNo
yNo
capNo
dashNo
fillNo
joinNo
nameNo
noteNo
refsNo
blendNomultiply, screen… (blend mode)
itemsNomany at once: props as above plus ref; top-level ones are shared defaults
anchorNofixed point when resizing (default top_left)
boundsNox/y/w/h measure geometric bounds (default, like create_shape) or visible (incl. stroke, like "box")
hiddenNo
lockedNo
strokeNo
opacityNo
keep_ratioNowith only w or only h: scale the other side too
stroke_widthNo
graphic_styleNo
scale_strokesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it explains the shared-defaults merge model (top-level props apply to all, per-item props override), group propagation ('fill/stroke go to every path and text inside'), the locked-item constraint, and even the return shape {count, items:[{uuid, name, type, box}]}. It stops short of stating error behavior for invalid/missing refs, partial-failure semantics on a 5000-item batch, or whether the change is undoable as one step.

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?

Front-loaded with the batch model, then grouped into labeled Geometry/Appearance clusters, and closed with sibling routing and the return shape — a logical order with no filler sentences. It is dense and near the upper bound of comfortable length for a 23-parameter tool, but every line maps to distinct parameters or behavior.

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

Completeness4/5

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

For a 23-parameter, zero-annotation, no-output-schema mutation tool, the definition covers the batch semantics, group side effects, lock prerequisite, units, enum-like values, and return shape. Remaining gaps are edge-case behaviors — invalid refs, batch size limits, partial failure, and undo granularity — that matter for a large-scale write but are not fatal to correct invocation.

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 description coverage is only 22%, so the description must compensate, and it largely does: it enumerates geometry params (x, y top-left, w, h, keep_ratio, anchor, bounds, scale_strokes), appearance params with units and sentinel values (stroke_width in pt, dash in pt with [] = solid, stroke can be 'none'), and the ordering rule for graphic_style ('applied first'). Name, note, hidden, and locked are only listed without added meaning, and the items array's maxItems of 5000 is never mentioned.

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

Purpose5/5

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

Opens with a specific verb and resource plus scope: 'Change many items in one call,' and immediately contrasts batch-vs-per-item application via refs vs items. It also names the sibling tools that cover adjacent operations (edit_text for text attributes, transform_items for rotation/scale factors), so an agent can distinguish it without opening a schema.

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

Usage Guidelines5/5

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

Explicit routing rules are given: use edit_text for text attributes and transform_items for rotation/scaling by factors. It also states the prerequisite condition for locked items ('Locked items need locked:false'), which is the kind of when-to/ when-not guidance agents need before invoking a batch mutation.

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