Skip to main content
Glama
Chandelier

Chandelier

by acidka

export

Render active Illustrator documents to PDF, PNG, JPG, SVG, or WebP with artboard, layer-variant, scale, and PDF/X output controls.

Instructions

Export the active document (it stays unchanged). format: "pdf" | "png" | "jpg" | "svg" | "webp". artboards: [indices] | "all" (default: the active artboard). refs: export just these items (png only). path: a file, or a folder (several outputs: -.; with a file path -.). variants: [{name, show:[layers], hide}] → one export each (-); layers restored after. Screen assets (png, refs): each:true → a file per item named after it; scales:[1,2,3] → name@2x.png…. PDF: preset (default "[PDF/X-4:2008]"; any name from Illustrator's PDF presets), pages "one_file" (default) | "per_artboard", bleed: "document" (default: its bleed if known) | number | [left, top, right, bottom] in session units → pages grow by it, TrimBox = artboard, BleedBox = page; output_intent: an installed CMYK profile by name ("FOGRA39", "GRACoL") or an .icc path → the PDF/X output intent. Warns about variable fonts (B10). Raster: scale (factor, default 1) | dpi | width (px); background "white" | "transparent" (png, webp); jpg is quality 80. SVG is clipped to the artboard; svg_text "outline" | "text". Returns {files:[{path, artboards, bytes, pages?, pdfx?, output_intent?, boxes?}]}.

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": {
      "format": "<format>",
      "path": "<path>"
    },
    "name": "export"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNo
eachNo
pathYes
refsNo
bleedNo
pagesNo
scaleNo
widthNo
formatYes
presetNo
scalesNo
svg_textNo
variantsNo
artboardsNo
backgroundNo
output_intentNo

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 full burden and does well: it declares the document is unchanged, that variant layers are restored afterwards, jpg quality is fixed at 80, the PDF/X-4 default, bleed-to-box mapping, and that variable fonts trigger a warning. It omits a file-writing concern an agent needs — whether an existing file at 'path' is overwritten or whether parent folders must exist — and says nothing about error behavior.

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?

Dense but front-loaded and grouped sensibly by concern (core selectors, then PDF, raster, SVG), with every line carrying operative detail. A few fragments are cryptic to an outside reader — 'Warns about variable fonts (B10)' and the bare 'svg_text' options — and the mid-line '|' separators make it harder to scan than headings would.

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 16-parameter tool with no output schema, this is nearly complete: it even sketches the return object ({files:[{path, artboards, bytes, pages?, pdfx?...}]}). The remaining gaps are whether scale/dpi/width are mutually exclusive and what happens on invalid or unwritable paths.

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 coverage is 0%, so the description must supply all meaning, and it documents essentially every one of the 16 parameters with semantics the schema cannot express: output naming patterns for folder vs file paths, per-artboard filename derivation, variants producing '<stem>-<name>', 'each' vs 'scales' interplay, PDF preset/page/bleed/output-intent meaning, and the scale|dpi|width alternatives for rasters.

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?

The opening sentence gives a specific verb and resource ('Export the active document') and immediately adds the key scope fact ('it stays unchanged'). An agent can tell this is the file-producing tool, distinct from siblings like preview, batch, or run_script, 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?

Usage is clear through stated defaults and applicability constraints: 'refs' is png-only, 'background' applies to png/webp, screen-asset mode requires png+refs, and 'artboards' defaults to the active artboard. It never names an alternative tool or says when not to use this one, so it stops short of explicit when/when-not routing.

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