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
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| each | No | ||
| path | Yes | ||
| refs | No | ||
| bleed | No | ||
| pages | No | ||
| scale | No | ||
| width | No | ||
| format | Yes | ||
| preset | No | ||
| scales | No | ||
| svg_text | No | ||
| variants | No | ||
| artboards | No | ||
| background | No | ||
| output_intent | No |