Skip to main content
Glama
Chandelier

Chandelier

by acidka

batch

Group many Illustrator tool steps into one call to cut round trips. Execute ordered steps with optional stop-on-error, rollback, per-file runs, saving, and export.

Instructions

Run many tool steps in ONE call (one round trip to Illustrator). steps: [{tool, args, artboard?}] — artboard: this step's coordinates start at that artboard's top-left; any tool except status, configure, preview, export and batch. Refer to an earlier step's items with "@n" (0-based step index) wherever a ref is accepted, e.g. {tool:"selection", args:{action:"set", refs:"@0"}}. stop_on_error (default true): stop at the first failing step. rollback (default false): if a step fails, delete the items created during the batch (not raw API creations in run_script) and close an empty new document. results: "all" (default) | "errors" (failures + counts, for big batches). steps_file: a JSON file with the steps (array or {steps}) instead of steps. files: run the steps on each file (paths, folders, globs like "jobs/*.ai"): open → steps → save → export → close. save: "copy" (default: into out_dir, originals untouched) | "in_place" (overwrites) | "none". export: [{format, path with {name} = file stem, …}]. Files already open are skipped. dry_run:true → open, run, report, close without saving or exporting.

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

Input Schema

NameRequiredDescriptionDefault
saveNo
filesNo
stepsNo
exportNo
dry_runNo
out_dirNo
resultsNo
timeoutNoseconds for the whole batch, default from configure
rollbackNo
steps_fileNo
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses stop_on_error default true, rollback default false and precisely what rollback deletes (items created during the batch, explicitly not raw API creations in run_script) plus closing an empty new document, that in_place save overwrites, that already-open files are skipped, and that dry_run saves/exports nothing. Missing only permission/auth requirements and the shape of the returned results.

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 core purpose in the first clause, then organized by parameter (steps, references, stop_on_error/rollback, results, steps_file, files, dry_run). Every clause carries information, but the heavy semicolon-and-parenthesis style makes it read as a dense wall rather than scannable sections.

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 an 11-parameter tool with 9% schema coverage and no output schema, the description covers nearly all invocation-relevant behavior, including the files pipeline and destructive save modes. Remaining gaps are the structure of the returned results payload and precedence rules when steps, steps_file, and files are combined.

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

Parameters5/5

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

Schema description coverage is only 9%, and the description compensates almost completely: it defines the steps item shape (tool, args, artboard), the meaning of artboard as a coordinate origin, the "@n" cross-step reference syntax with an example, defaults for stop_on_error/rollback, the results enum modes, the save enum semantics for all three values, export placeholder syntax, out_dir, and dry_run. Only timeout is left to the schema.

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?

States a specific verb and resource — running many tool steps in one Illustrator round trip — and immediately bounds the surface with an explicit exclusion list (status, configure, preview, export, batch). An agent can distinguish it from run_script or individual tool calls without opening the schema.

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

Usage Guidelines4/5

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

Gives clear usage context: batch many steps per round trip, batch across many files (open → steps → save → export → close), or dry-run for inspection. The exclusion list functions as a 'when not to use' constraint. It does not explicitly contrast with calling the sibling tools one at a time, nor say what happens when both 'steps' and 'steps_file' are supplied.

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