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
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| cap | No | ||
| dash | No | ||
| fill | No | ||
| join | No | ||
| name | No | ||
| note | No | ||
| refs | No | ||
| blend | No | multiply, screen… (blend mode) | |
| items | No | many at once: props as above plus ref; top-level ones are shared defaults | |
| anchor | No | fixed point when resizing (default top_left) | |
| bounds | No | x/y/w/h measure geometric bounds (default, like create_shape) or visible (incl. stroke, like "box") | |
| hidden | No | ||
| locked | No | ||
| stroke | No | ||
| opacity | No | ||
| keep_ratio | No | with only w or only h: scale the other side too | |
| stroke_width | No | ||
| graphic_style | No | ||
| scale_strokes | No |