name: vectorcraft
description: >-
VectorCraft is a free, open-source, pure-Rust vector illustration app — a clean-room
reimplementation of Adobe Illustrator for macOS, Windows, Linux, FreeBSD and the web (WASM) —
with an MCP server (33 tools), a JSON control channel (30 methods), a browser JS API (11 calls),
a headless CLI (7 subcommands) and an in-process JavaScript scripting engine (script.run). Use
this skill whenever the user mentions VectorCraft (or "the vector app", a .vectorcraft /
.drawcraft / .vctemplate file, or the ArtCraft vector tool), asks what it can do, which
formats it opens/saves/exports, its CLI flags, control or MCP tools, or its keyboard shortcuts;
wants to create, edit, automate, script, batch-convert or export vector art with it; needs assets
prepared for it (SVG/PDF/EPS/DXF/PSD/HEIC/rasters/fonts/.wasm plug-ins); wants its output
verified or repaired; or troubleshoots it — even when the app is not named but the job is
Illustrator-style vector work ("draw a logo", "make an SVG", "edit this .ai", "trace this
Audit basis. Refreshed 2026-11-12 against tag v0.24.1, commit f4922aa7ac99a4f6d56fc68a83a44945207ec610 — git rev-parse HEAD in the pinned checkout confirms, and the installed VectorCraft.app bundle matches (its binary prints vectorcraft 0.24.1; CFBundleIdentifier ai.storyteller.vectorcraft). The previous release this skill described was v0.22.0 (654749c16eb20b6d3182a96defb66e11d1a9649a).
v0.22.0 → v0.24.1 delta. 1,304 files changed (+242,142/-11,521). Registry: +47 engine command ids, zero removed (908 → 955) and UI commands 427 → 453 (crates/engine/src/cmd/, crates/ui-egui/src/menus/ui_commands.rs). The headline is JavaScript scripting: a new ES5.1 interpreter with E4X XML (crates/js/src/lib.rs) runs .js/.jsx through script.run/script.stop, keeps named #targetengine engines (script.engines, script.engine.drop), writes to a Script Console (crates/engine/src/script/, crates/ui-egui/src/panels/script_console.rs), lists File › Scripts (script.listInstalled) and runs each script as one transaction — one undo step per changed document, full rollback on error, with 8 MiB source, 1e9 default instructions, 256 MiB heap and a read-only File/Folder sandbox limited to the script's folder and automation read roots (crates/engine/src/cmd/scripts.rs; apps/vectorcraft-cli/tests/it/script.rs). Reference-app scripts are still only statically checked (script.check, crates/scriptcheck/src/) because there is no Illustrator document object model. SVG Filters now work — the last vector-effect stub — via svgFilter.define/import/list/apply/delete and the SVG Filter effect (crates/engine/src/cmd/svgfilter.rs; crates/effects/src/svg_filter.rs), taking the parity table to 50/50. Type gained spell check (text.spelling.check/suggest, Auto Spell Check, custom dictionary and Edit Custom Dictionary…, though the Check Spelling dialog is still a stub), composite fonts (.vccomposite, six character classes), Dynamic Text (type.dynamicText) and type-on-a-path handles (text.setPathHandle) (crates/engine/src/cmd/{spelling,compositefonts}.rs, crates/doc/src/text/composite.rs, crates/engine/src/cmd/typecmd/block.rs). Files gained HEIC/HEIF and JPEG XL import (crates/engine/src/cmd/fileio/{heifread,jxlread}.rs; OPEN_EXTS 43 → 46, PLACE_EXTS 47 → 50), PSD/PSB layers on open (layers: true default; layers: false keeps the old merged image) (crates/engine/src/cmd/fileio/psdlayers.rs), read-only importer plug-ins (crates/engine/src/cmd/fileio/importer.rs), and 3D mesh export of Extrude & Bevel/Revolve/Inflate/Rotate objects as OBJ+MTL, glTF 2.0, USDA or USDZ (crates/engine/src/cmd/fileio/mesh3d.rs; assets.add3D/export3D/set3DFormat) — while 3D import still does not exist. Extrude & Bevel (Classic) joins the 3D types (crates/effects/src/solids/classic.rs). Plug-ins moved to API level 2: host imports for progress/cancel/log, settings and cache, command calls with commandAllowlist, permission grants, importer/exporter kinds and Safe Mode (crates/plugins/src/{manifest,runtime,permissions}.rs; plugin.safeMode/setEnabled/clearCache). MCP added a command-reference resource (vectorcraft://commands/reference, from engine.apiReference and crates/apischema/), lists desktop UI_COMMANDS with ui: true (crates/mcp/src/ui_catalog.rs), and now has 8 prompts (added check-spelling, variables-bind, path-tools). Browser API grew to 11 calls (shared PageApi adds docInspect/uiInspect, apps/vectorcraft-web/src/api.rs). Document model/UI: ruler guides are now document objects on their layers (crates/doc/src/guides.rs, Document::ruler_guides, guide.add), gradients gained conic (crates/engine/src/cmd/gradient.rs), document.compare diffs a render against an image (crates/engine/src/cmd/edit.rs), edit.newDocumentFromState forks a History row, prefs.export/import move a profile, actionSet.read parses .aia action-set text, and object.setPixelAligned/select.object.notAlignedToPixelGrid cover pixel-grid work. The PDF exporter's longPagesInPoints writes pages over 200 in at full size, and the CLI gained global --safe-mode, --allow-plugin-grants, convert --preserve-editing/--legacy-name-encoding and perf --native-io (crates/engine/src/cmd/fileio/pdf.rs; apps/vectorcraft-cli/src/main.rs).
v0.21.0 → v0.22.0 delta. 858 files changed (+97,302/-5,778). Registry: +22 engine command ids, none removed (886 → 908) — addon.shapes.*, addon.contour.set, addon.color.fillToStroke/strokeToFill, addon.document.batchTraceFolder, addon.select.byArtboards/byLinkStatus, addon.type.releasePath/textTweaker, document.move, select.globalEditExclude, select.same.textFillAndStrokeColor, stroke.weightUp/weightDown, text.glyphAlternates/setGlyphAlternate; UI commands 410 → 427. Native save gained precision: 0..9 for path anchors/handles (crates/format/src/lib.rs; crates/engine/src/cmd/fileio/save.rs), the CLI gained --ppi on run/convert, and raster export defaults to the document's raster-effects resolution when neither ppi nor scale is given (apps/vectorcraft-cli/src/main.rs; crates/engine/src/cmd/fileio/encode.rs). Import: Ghostscript eps2write EPS files open, .ai gained linked images with placeholders, threaded linked area type, clipping-path intersections, 1-bit mask colouring and legacy name encodings (crates/eps/src/import/ai/; crates/eps/src/import/tests_generators.rs). UI/type: document windows float/cascade/drag between tab and window (crates/ui-egui/src/doc_windows.rs), symbol 9-slice guides draw and drag on canvas (crates/ui-egui/src/canvas/tool_overlays.rs), Recolor Artwork's Edit tab offers a smooth wheel, a segmented wheel or colour bars (crates/ui-egui/src/dialogs/recolor.rs), Objects on Path gained a Space widget (crates/engine/src/cmd/objects_on_path.rs), Document Info counts each object once (crates/engine/src/cmd/docinfo.rs), Variables › Import Data Sets reads every column (crates/engine/src/cmd/variablecmds/csv.rs), and Hindi ships a catalogue (crates/ui-egui/src/i18n/hi.tsv).
v0.20.0 → v0.21.0 delta. 461 files changed; +2 command ids (addon.color.swatchLegend, select.same.linkBlockSeries), none removed. The Variables panel, Recolor Artwork colour sliders, .ai version-7 palettes, a native envelope from the craft-vectorcraft-format crate, Affinity stroke width profiles, PDF spot gradients, and Replace Symbol clearing the old symbol's dynamic overrides.
No references/ directory ships with this skill: everything below is cited inline to the repo, and evidence.md holds the claim → path map. Verify against your installed version — the ArtCraft Launcher auto-updates, so a newer build may differ; every count quoted here was re-measured at this tag, and code paths that moved were re-cited.
VectorCraft is a clean-room, open-source reimplementation of the Adobe Illustrator workflow, written from scratch in pure Rust (README.md). It runs natively on macOS, Windows, Linux and FreeBSD and in the browser via WebAssembly (apps/vectorcraft-web/). Maturity: alpha — the project self-assesses ~88% feature breadth, ~75% depth and ~62% ready for real work; treat percentages as self-assessed and the code as authoritative (the docs still print 348/353 menu items, 89/92 tools and 46/50 effects where the code now has 94 tools and a 118-entry effect catalogue). Source: GitHub storytold/vectorcraft. Every user-visible action is a command reachable over MCP, the JSON control channel, the browser API and the CLI, and since v0.24.1 also from JavaScript scripts (AGENTS.md; docs/mcp.md; docs/control-protocol.md). The UI is egui with craft-ui docking; v0.22.0 added document windows and Hindi, and v0.24.1 adds the Script Console, Color Wheel and 3D and Materials panels.
Project rules that bind anyone working in or around the repo: never run, script or copy from Adobe applications (clean-room, AGENTS.md); no panics in shipped code (clippy-denied, plus crates/engine/src/guard.rs); every bundled asset is attributed in ASSETS.md.
| Surface | Count at v0.24.1 | Change vs v0.22.0 |
|---|---|---|
| Engine command specs | 955 cmd! ids |
+47, zero removed |
| UI commands | 453 entries in UI_COMMANDS |
was 427; +26 |
| CLI subcommands | 7: mcp, run, commands, convert, info, bench, perf |
unchanged at v0.24.1; new flags |
| MCP tools | 33 definitions (31 multi-line + undo/redo) |
unchanged at v0.24.1 |
| MCP prompts / resources | 8 prompts (poster, icon-set, recolor, trace-and-style, export-set, check-spelling, variables-bind, path-tools); 4 fixed resources + 4 URI templates |
prompts +3; fixed resources +1 |
| Control-channel methods | 29 canonical names (30 accepted strings with the command alias) |
unchanged at v0.24.1 |
| Browser JS API | 11 calls on window.vectorcraft |
was 9; +2 |
| Open extensions | 46 in OPEN_EXTS; 50 in PLACE_EXTS (adds .txt/.rtf/.docx/.doc) |
was 43/47; +3/+3 |
| Save formats | 7: vectorcraft, template, pdf, svg, svgz, ai, eps |
unchanged at v0.24.1 |
| Format catalogue | 29 FORMATS entries (27 readable, 20 writable) + plugin.<id> |
+2 readers (the old 21 counted blocks only) |
| Photoshop-style filters | 57 = 56 PIXEL_EFFECTS + blur.gaussian |
unchanged at v0.24.1 |
| Effect catalogue | 118 entries: 91 direct + 15 warps + 12 Pathfinder | was 116; +2 |
| Tools | 94 ids in the tool catalogue (t( entries in crates/tools/src/catalog.rs) |
unchanged at v0.24.1 |
| Panels | 47 ICON_PANELS entries in crates/ui-egui/src/state.rs:169 |
was 44; +3 |
| Interface languages | 28 = 27 .tsv catalogues + English |
unchanged at v0.24.1 |
| Native file format | VERSION = 4 (document model FORMAT_VERSION = 3) |
unchanged at v0.24.1 |
Every row was re-measured at this tag; sets marked unchanged are unchanged at v0.24.1. Never quote a count from memory: vectorcraft-cli commands, MCP command_list / list_commands, or control engine.commands return the live catalogue with shortcuts and params. Unknown param keys are rejected with a did-you-mean before anything runs (crates/ui-egui/src/menus/run.rs::check_params), and an unknown command id is answered with the nearest real id. MCP's command_list also lists desktop-only UI_COMMANDS with "ui": true; a headless MCP session refuses to run those and tells you to connect to a live app (crates/mcp/src/ui_catalog.rs; crates/mcp/src/headless.rs).
.vectorcraft (legacy .drawcraft still opens): versioned JSON, VERSION = 4, down-saves to v1/v2 as drawcraft, optional gzip (capped on wasm32), embedded PNG preview, atomic saves, unknown keys from newer versions preserved (crates/format/src/lib.rs imports VERSION from the craft vectorcraft-format crate; crates/engine/src/cmd/fileio/save.rs documents version: 4; docs/mcp.md › Native files). Save options include compress, version, preview, precision: 0..9, separateArtboards, includeLinked, embedProfiles and pdfCompatible.crates/ui-egui/src/state.rs; crates/ui-egui/src/panel_docking.rs; docs/ui-parity.md). Documents float in their own windows (Window › Arrange › Float in Window, Float All in Windows, Cascade), drag out of the tab strip and back to dock, and open in windows when Open Documents As Tabs is cleared (crates/ui-egui/src/doc_windows.rs). --new-instance starts a second process; --safe-mode starts without plug-ins (apps/vectorcraft/src/main.rs).guide.add, view.guides.make/release/lock/clear, Document::ruler_guides, and guides move/select/lock like art (crates/doc/src/guides.rs; crates/doc/src/document_guides.rs; crates/engine/src/cmd/docmenu.rs). Artboard guides (center mark / cross hairs / video safe areas / video ruler PAR) remain per-artboard via artboard.setProps/artboard.new; Distance Guides on Alt/Option hover; a Constrain Angle preference.artboard.rename and artboard.switchOrientation are new commands; edit.newDocumentFromState {index} makes a new document from a History-panel row; document.compare {path, artboard?, background?, threshold?, diffPath?} renders the artboard at the image's size and returns rmse, the differing-pixel count and an optional diff PNG (crates/engine/src/cmd/edit.rs).SOURCE_DATE_EPOCH replaces the wall clock in PNG, PDF, EPS, legacy .ai, packaged zips and .vectorcraft saves; a malformed value is ignored (crates/doc/src/metadata.rs).crates/ui-egui/src/menus/tests.rs; crates/engine/src/cmd/views.rs).crates/tools/src/catalog.rs): Pen, Curvature, selection/anchor tools, shapes, pencil/brush/blob brush, eraser, lasso, magic wand, scissors, shape builder, live paint, width tool, symbol tools, Dimension tool, Perspective Selection, Touch Type… Tools never mutate the document directly — they emit commands, which makes gestures replayable by agents (crates/tools/src/lib.rs; AGENTS.md).crates/pathops/src/lib.rs; crates/engine/src/cmd/buildcmds.rs). The Pen tool and path.join continue, close and join compound paths; Ctrl+J joins selected end points; the Join tool connects endpoints near scrub-line ends; Pathfinder Options… (Precision, Remove Redundant Points, Divide/Outline removes unpainted artwork) works.crates/engine/src/cmd/appearance.rs, paint.rs, gradient.rs, patterncmds.rs, recolor.rs, opacitymask.rs). Conic gradients sweep their stops once around the centre, clockwise from the vector, with a negative aspect mirroring the sweep (crates/engine/src/cmd/gradient.rs; paint.setFill/paint.editGradient).crates/brush/src/lib.rs; crates/ui-egui/src/panels/brushes/).crates/engine/src/cmd/graph.rs, variablecmds.rs, perspgrid.rs, intertwine.rs, objects_on_path.rs; crates/doc/src/variables.rs). Symbols gained name sorting (symbol.sortByName), instance part selection/reset (symbol.instance.selectPart, resetTransform) and Small/Large List panel views.crates/engine/src/cmd/edit.rs). Pixel-grid work uses object.setPixelAligned and Object › Not Aligned to Pixel Grid (select.object.notAlignedToPixelGrid; crates/engine/src/cmd/object/pixelgrid.rs).crates/text/; docs/type-parity.md).1., A) or * at a paragraph start starts a list; Convert to Text turns bullets/numbers into characters; exported PDF list markers are selectable text (crates/engine/src/cmd/typecmd.rs).type.ruby sets/removes a reading over a byte range — above/below, aligned, sized, overhanging or squeezed; saved natively, laid out with line growth, drawn and exported in SVG/PDF, and kept through Create Outlines, EPS, EMF/WMF and legacy .ai. No UI panel or type-on-a-path ruby yet.sbix/CBDT bitmap emoji, COLR v0/v1 (crates/text/src/colr.rs) and OpenType SVG glyphs (crates/text/src/svg_glyph.rs) draw and export as vector art; bitmap glyphs survive effects, Expand Appearance and EMF/WMF. Still open: CPAL palette variables, scripts/text inside SVG glyph documents.type.dynamicText): sizes type on a path to fill the span between its brackets and sets each line of area type to the frame width, refitting after every edit within 0.1–1296 pt (crates/engine/src/cmd/typemenu.rs; crates/engine/src/cmd/typecmd/block.rs; crates/engine/src/tests/dynamic_text.rs). Type on a path now exposes its path handles through text.setPathHandle.type.compositeFonts.set/list/import/export): a font per character class (Kanji, Kana, Punctuation, Symbols, Roman, Numerals), each with style, size, baseline and scales; saved with the document and stored in .vccomposite files. Not yet: custom character sets, the Units menu and Show Sample (crates/engine/src/cmd/compositefonts.rs; crates/doc/src/text/composite.rs; docs/type-parity.md).text.spelling.check/suggest from craft-proof; addWord/removeWord/changeWord/dictionary/editDictionary/ignoreAll; Auto Spell Check via edit.autoSpellCheck and its right-click menu). The Check Spelling dialog is still a menu stub (crates/engine/src/cmd/spelling.rs; crates/ui-egui/src/dialogs/custom_dictionary.rs)..txt, .rtf and Word .docx as area type with formatting (crates/engine/src/cmd/place/). text.glyphAlternates lists a character's alternate glyphs and text.setGlyphAlternate picks one (crates/engine/src/cmd/textedit.rs).ui.effectGalleryDialog): six raster submenus, Add to Stack, reorder/remove, per-effect params, live canvas preview, a thumbnail per filter and an in-dialog preview; OK applies the stack as separate appearance effects in one undo step (crates/effects/src/pixel.rs; crates/ui-egui/src/dialogs/effect_gallery.rs). The gallery does not list the Blur, Pixelate, Sharpen or Video groups (those stay in the Effect menu).crates/effects/src/catalog.rs (effect_catalog(), 118 entries = 91 direct + 15 WARP_STYLES + 12 PATHFINDER_EFFECTS). The last hole closed: SVG Filters (svgFilter.*, SVG Filter effect; 50/50 per docs/effects-parity.md).MAX_LIGHTS = 10); four lighting presets via effect.lightingPreset; faces export as vector art (crates/three-d/src/lights.rs; crates/effects/src/solids/classic.rs; docs/three-d.md). No materials, shadows or ray tracing; the Materials tab and Materials… entry remain placeholders. Classic Revolve/Rotate/Map Art are not implemented.assets.add3D), choose usda (default), usdz, gltf or obj (assets.set3DFormat), then write it (assets.export3D) — OBJ with .mtl, glTF 2.0 with an embedded buffer, USDA, or USDZ stored on a 64-byte boundary. Materials are the paint colour; no textures, map art or shading (crates/engine/src/cmd/fileio/mesh3d.rs; crates/engine/src/cmd/assets.rs). No 3D import.crates/trace/src/lib.rs; docs/image-trace-quality.md).document.open / File › Open reads 46 extensions — authoritative list OPEN_EXTS in crates/engine/src/cmd/fileio/formats.rs:514: .vectorcraft, .drawcraft, .svg, .svgz, .pdf, .ai, .ait, .png/.pns, .jpg/.jpeg, .gif, .webp, .tif/.tiff, .bmp/.dib/.rle, .tga/.vda/.icb/.vst, .pcx, .pxr, .jp2/.jpx/.jpf/.j2k/.j2c/.jpc, .heic/.heif, .jxl, .psd/.pdd/.psb, .vctemplate, .dxf, .emf, .wmf, .eps/.epsf, .ps, .af, .afdesign, .afpub. File › Place reads 50 extensions — those plus .txt, .rtf, .docx, .doc (PLACE_EXTS, :603; TEXT_EXTS/RTF_EXTS/DOCX_EXTS/DOC_EXTS).
warnings; foreign XML namespaces round-trip (crates/svg/src/export.rs; docs/file-format-parity.md)..ai — own reader; PDF opens with layers, editable text, masks, security, overprint; .ai reads Illustrator's private editing-data structure (up to 512 MiB on 64-bit) and legacy PostScript-form .ai via a PostScript Level 3 interpreter; Illustrator blends import as live blends; a multi-page .ai can open a named page (crates/pdf/; crates/eps/src/import/ai/; docs/file-format-parity.md).crates/eps/); .ps opens (the file-format summary's "PS missing" row is stale).layers: false gives the old merged image; hidden layers are left out unless hiddenLayers; adjustment layers, layer effects and vector masks are not applied. File › Place still places them as their merged image (crates/engine/src/cmd/fileio/psdlayers.rs; crates/engine/src/cmd/fileio/commands.rs; README.md).crates/engine/src/cmd/fileio/heifread.rs). JPEG XL — first frame, 16-bit/float samples reduced to 8 bits, alpha kept, CMYK refused (crates/engine/src/cmd/fileio/jxlread.rs). Both are read-only..af (Affinity 3), .afdesign, .afpub and, by content, .afphoto — native read-only import; 51 pinned corpus documents (crates/affinity/README.md; docs/affinity-validation.md).crates/cad/, crates/metafile/). Importer plug-ins add read-only plugin.<id> formats; document.open {importer, params} or File › Open With selects one (crates/engine/src/cmd/fileio/importer.rs; docs/plugins.md). Read warnings on every open.SAVE_FORMATS = vectorcraft, template (.vctemplate), pdf, svg, svgz, ai, eps (crates/engine/src/cmd/fileio/save.rs:24); TEMPLATE_FORMATS = template, ait. Save As .ai writes a PDF-compatible file by default (carrying the native document when every artboard is written in order), or legacy version 7 (aiVersion: "7" / convert --ai-version 7) which keeps layers, groups, compound paths and editable type, one artboard per file; transparency, live effects and object names don't survive it, and Illustrator's private editing data is never written; convert to PDF omits editing data unless --preserve-editing.
Extension-driven document.export (export_extensions()): .vectorcraft, .vctemplate, .svg, .svgz, .pdf (presets, PDF/A-2b, PDF/X-1a/3/4, layers, marks/bleed, ICC, security, /DisplayDocTitle, longPagesInPoints), .ai, .eps, .dxf (R12–2018), .emf, .wmf, .png, .png8 (indexed), .jpg, .webp (lossless only — a lossy request is written lossless with a warning), .gif, .tif, .bmp, .tga, .psd (layered), .txt. Exporter plug-ins add their own formats (plugin.<id>). Pattern fills/strokes are written as real PDF tiling patterns. Artboard background colours are drawn behind exported art by default (includeArtboardFill). Plus Export for Screens / Asset Export (<filename> takes the saved document's file name; sizes refuse signs/exponents/non-numeric text), Export Selection, Export As with rect page-area rasters, CSS Properties export, Save for Office, Print/Print Tiling and Package (crates/engine/src/cmd/print.rs, css.rs, package.rs, printtiling.rs, crates/engine/src/cmd/fileio/screens.rs).
script.run runs a .js/.jsx file (or source) against the open documents through the vc object: vc.run(id, params) executes any command, vc.document is a snapshot, vc.commands lists what a script may run, vc.log writes to the report and Script Console, vc.args is the run's JSON args, vc.api.version/has describe the API. $ supplies ExtendScript-ish helpers ($.write, $.writeln, $.evalFile, $.fileName, $.includePath, $.engineName), alert/confirm/prompt open dialogs (answered from answers when headless), and #include///@include plus JSINCLUDE load files. #targetengine name keeps globals in a named engine (8 per session, 64 MiB each; not on the web); script.engines lists and script.engine.drop drops them. A run is one transaction: one "Run Script" undo step per changed document, full rollback on an uncaught error/limit/script.stop, while files already written stay written and are named. Limits: 8 MiB source (32 MiB with includes), 1e9 instructions by default (1e11 max), 256 MiB heap (128 MiB on wasm), 2,000,000 host calls, 16 MiB and 1,048,576 entries per bridged value, 2048 console lines. File/Folder objects are read-only and confined to the script's folder and automation read roots (crates/engine/src/cmd/scripts.rs; crates/engine/src/script/{mod,console,dollar,dialogs,files,folder,include}.rs; crates/js/src/lib.rs; docs/mcp.md › Script engines)..js/.jsx files from the Scripts folder (subfolders as submenus; script.listInstalled), Other Script… runs a file after a warning (unless Preferences › General › Show External Script Warning is off) (ui.runScript), Window › Script Console shows output/errors/reports (script.console, script.console.clear, crates/ui-egui/src/panels/script_console.rs). Reference-app scripts are not executed: script.check statically analyses .jsx, .jsxinc and .jsxbin (needs, includes, document-model use, menu commands, problems) and shows a report (crates/scriptcheck/src/; crates/engine/src/cmd/scripts.rs; ui.checkScript).vectorcraft-cli mcp — remote backend (default: connect to 127.0.0.1:7979, fall back to headless) or --headless. 33 tools (crates/mcp/src/tools/definitions.rs): command_list, command_run, run_command, command_batch (≤256 steps, atomic, $N.path), doc_inspect, inspect_document, ui_inspect, inspect_ui, ui_screenshot, list_commands, select_tool, pointer_gesture, draw_path, draw_shape, set_paint (reports how many objects it painted), press_key, type_text, answer_dialog (sets fields of the app's open dialog, then confirms or cancels), invoke_menu, open_panel, screenshot, open_file, save_file, export, add_text, apply_effect, pathfinder, transform, create_graph, text_wrap, render_preview, undo, redo. 8 prompts, 4 fixed resources (document, document/json, commands, command-reference) + 4 URI templates (object/{id}, command/{id}, effect/{id}, swatch/{name}), completions, logging, cancellation and a 2 s busy guard. Caps: 16 MiB lines, 64-message batches, 8 MiB kept step results, 256 MiB app replies. Protocol 2025-06-18; clients asking for 2026-07-28 also get resultType: complete, ttlMs and cacheScope (crates/mcp/src/server.rs; crates/mcp/src/prompts.rs; crates/mcp/src/resources.rs; docs/mcp.md).vectorcraft --control <port> listens on 127.0.0.1 only, one JSON request per line. 29 canonical methods (30 accepted strings with the command alias): engine.execute, engine.commands, document.inspect, ui.inspect, ui.menu.list/ui.menu.invoke, ui.contextMenu.list, ui.tool.select/ui.tool.list, ui.pointer, ui.key/ui.text/ui.move/ui.click/ui.drag/ui.wheel, ui.set, ui.dialog.set/confirm/cancel, ui.resize, ui.focus, ui.screenshot, ui.render, ui.docking, app.open/save/export/quit (crates/ui-egui/src/control.rs; docs/control-protocol.md). No authentication — loopback only; 4 MiB request line, 16 connections, 60 s reply wait, 300 s idle. ui.dialog.set errors on a field the open dialog does not read. Confine reads/writes with repeatable --automation-read-root/--automation-write-root (or VECTORCRAFT_AUTOMATION_READ_ROOT/_WRITE_ROOT).window.vectorcraft: request, execute, commands, docInspect, uiInspect, screenshot, inspect, openFile, captureDownloads, files, readFile (apps/vectorcraft-web/src/api.rs; shared PageApi).vectorcraft-cli (apps/vectorcraft-cli/src/main.rs): mcp (--connect ADDR | --headless, repeatable --automation-read-root/--automation-write-root, --allow-plugin-grants), run (headless batch; --in FILE, repeatable --cmd ID --params JSON, repeatable --export FILE, --scale, --ppi N, --allow-plugin-grants; --commands FILE|- reads a JSON array or JSON Lines, 64 MiB/100,000 steps; a step's result is referencable as $N.path), commands (full catalogue as JSON), convert IN OUT (--scale/--ppi/--artboard/--range/--outline-text/--decimals/--replace-lossy/--editing-data/--preserve-editing/--legacy-name-encoding/--ai-version 7|pdf/--hidden-objects layer|omit|visible/--transparent-images flatten|omit; refuses to overwrite its input when reading it left things out unless --replace-lossy; reports importWarnings), info FILE, bench FILE [--size WxH] [--iters N], perf [--paths N] [--deep] [--native-io [--artboards 1..4]]. Global --safe-mode SUBCOMMAND runs any subcommand without plug-ins; --help after a subcommand prints that subcommand's usage.plugin.<id> formats) or exporters that add formats; up to 256 typed parameters; permissions are granted at install and a heavy budget is opt-in; Safe Mode starts or runs without plug-ins and lists the disabled ones (crates/plugins/src/manifest.rs; crates/plugins/src/permissions.rs; docs/plugins.md; plugin.safeMode, plugin.setEnabled, plugin.clearCache).command.batch; the Batch… dialog (ui.batchDialog) runs an action over files or data sets (action.batch); actionSet.read parses another app's textual .aia action set (read-only); datasets via dataset.import (CSV/TSV; header cells define text/visibility/image/graph variables) (crates/engine/src/cmd/actionset.rs; variablecmds.rs; crates/doc/src/variables.rs).engine.apiReference returns a Markdown reference (up to 1 MiB) generated from the commands' parameter schemas, also served as MCP resource vectorcraft://commands/reference (crates/engine/src/cmd/apiref.rs; crates/apischema/). Preferences move between machines with prefs.export/prefs.import (JSON, folder preferences excluded).apps/vectorcraft-web/ (Trunk; cargo xtask wasm gates it); the README requires WebAssembly SIMD (Chrome/Edge 91, Firefox 89, Safari 16.4 or newer). Wasm aborts on panic — the native guard safety net does not apply there (crates/engine/src/guard.rs; packaging/web/README.md)..tsv catalogues + English) under crates/ui-egui/src/i18n/; the 12-key-language score is ~82% in docs/localization-parity.md while ROADMAP.md still says 74%. Only Georgian has had a native-speaker review; Hindi (hi.tsv) is a machine-assisted draft with no web font yet, and Arabic has no catalogue (no right-to-left interface). macOS declares the UI languages so open/save panels translate.apps/vectorcraft/src/mac_tablet.rs); the eraser end also selects the Eraser on Windows and in the web build. Windows lists only GDI-loaded fonts. Linux Wayland drag-and-drop and pen caveats are in README.md; maximized Windows windows respect top/side and auto-hidden taskbars.Cargo.toml); Windows installs per-user by default. Hostile-input hardening covers EPS/legacy-.ai parsing, document-model bounds, planar-map budgets, raster decode caps, PDF/PSD/HEIF/JXL decoding and the wasm JSON cap.Label guide: repo-admitted gaps (docs/gaps.md, ranked G1–G19) are work the app cannot be assigned yet. Where docs and code disagree, code wins; the main disagreements are listed at the end.
.ai/EPS exchange — faithful layer/group structure from the editing data in real files, guides, open speed on large files, and live effects/brushes/symbols as live objects (Illustrator's own editing data is never written); #3 G10 launch/stability on some Windows 11 and Linux machines; #4 G8 hardening at scale; #5 G11 correctness bugs in core tools.Materials… entry are placeholders; Classic Revolve/Rotate/Map Art are absent (docs/gaps.md G3; docs/three-d.md). 3D import (OBJ/USD/glTF) is not implemented — those are export-only.docs/effects-parity.md before promising a specific option. Apply SVG Filter runs the document's own filters only — no default filter library is bundled.docs/type-parity.md; docs/gaps.md G4)..jsx scripts that use app.activeDocument/app.selection fail even though script.check understands them. #targetengine is not available on the web; scripts can read but not write files, and only inside their own folder/read roots. No AppleScript/VBScript host..ps is read but document.export writes no PostScript (print-only output). JPEG 2000, PCX and Pixar are read.resources/subscribe, no sampling/createMessage or elicitation/create; document reads are refused as busy while a long call runs (docs/mcp.md › Not implemented).docs/control-protocol.md).--allow-plugin-grants should be reserved for plug-ins you trust. Safe Mode is the recovery path when a plug-in stops launch (docs/plugins.md).docs/gaps.md G19).vectorcraft-cli perf on your machine; macOS pen pressure is implemented but untried on hardware.README.md "What's missing" still lists scripting although script.run ships (the missing part is the reference-app DOM); (b) ROADMAP.md prints 348/375, 89/92 and 46/50 where docs/target-app-parity.md says 353/375 and the code has 94 tools and a 118-entry effect catalogue; (c) docs/file-format-parity.md has a summary row saying HEIC/HEIF and PS are missing while its detail rows say they are read, and duplicated summary rows that disagree on the count; (d) docs/effects-parity.md's header says 49/50 while its table says 50/50; (e) docs/mcp.md still advertises "Three fixed resources" and "Five prompts" while the code has 4 resources and 8 prompts.Launch (macOS):
open -a VectorCraft # or: open -a VectorCraft --args --control 7979
open -a VectorCraft --args --control 7979 --automation-read-root DIR --automation-write-root DIR
open -a VectorCraft --args --safe-mode --new-instance FILE
Desktop flags (apps/vectorcraft/src/main.rs; apps/vectorcraft/src/automation_args.rs): --control <port> (or VECTORCRAFT_CONTROL_PORT; a bad port stops the app with an error), repeatable --automation-read-root <dir> / --automation-write-root <dir> (confine everything an agent reads/writes; --flag=DIR also works, and the roots are ignored with a warning when --control is absent; VECTORCRAFT_AUTOMATION_READ_ROOT/_WRITE_ROOT also work), --in-window-menus (VECTORCRAFT_IN_WINDOW_MENUS=1), --safe-mode (no plug-ins load or run; files open in a new window), --new-instance, --version, -h/--help; extra arguments are files to open as tabs. Env: VECTORCRAFT_CONFIG_DIR (isolated profile — use this for agent runs), VECTORCRAFT_NO_PREFS (no preference reads/writes), WGPU_POWER_PREF=high|low / WGPU_ADAPTER_NAME=<substr> to pick the GPU (README.md).
The CLI is not inside the .app on macOS. It ships as a separate release asset (docs/mcp.md › From an installed release); the bundle holds only the desktop binary, and vectorcraft-cli is not installed on a stock launcher install. Build with cargo build --release -p vectorcraft-cli, cargo install --path apps/vectorcraft-cli --locked, or unzip the asset. Update the app only between projects.
Core workflow concepts: one document per tab or floating window (ui.inspect lists documents/activeDocument); each document has artboards, layers, objects addressed by stable ids (layer/sublayer objects addressable as object/{lid} over MCP); units are points, y down, origin at the first artboard's top-left; a new document is 612 × 792 (docs/mcp.md). Selection plus a key object drive most commands; most commands accept explicit ids. Artboards carry per-artboard options (background colour, lock, center mark, video safe areas) through artboard.setProps; ruler guides are now objects (guide.add, view.guides.*).
Open → edit → save/export: open with File › Open / app.open / open_file (any OPEN_EXTS); save with Save/Save As (SAVE_FORMATS above; native saves also take compress, version, preview, precision: 0..9, separateArtboards) — a document opened from or saved as SVG/PDF keeps that format on Save, and the result's warnings say what the format loses. Export with document.export (extension or format picks the format; PDF/.ai write one page per artboard, SVG/SVGZ/EPS one file per chosen artboard, rasters one artboard unless useArtboards, with optional rect crops). Always read warnings — on import (EPS preview fallback, unsupported SVG filters, PSD layers merged/left out, Affinity losses…) and on export: they are the loss report.
Scripts: put .js/.jsx files in the Scripts folder beside the preferences (File › Scripts lists them, subfolders as submenus; script.listInstalled returns the folder and paths) or call script.run {path} / {source}. In the app a run returns {running: true, name} and reports later through ui.inspect's scriptReport; headless it returns the full report (ok, changed, written, log, fuelUsed, hostCalls, slowestCommands, console, dialogs). script.stop rolls the documents back. Read script.check's report before running an unfamiliar reference-app .jsx.
Keyboard shortcuts: never guess them. The command catalogue carries each command's shortcut: vectorcraft-cli commands, MCP list_commands, control engine.commands (crates/ui-egui/src/shortcuts.rs resolves them). Shortcut sets import/export as .kys (shortcutset commands).
Preferences / agent-visible folders (macOS): Application Support/VectorCraft/ under the user's home (ui.json plus sibling folders Swatches, Graphic Styles, Fonts, Plug-ins, Scripts, PDF Presets, Color Profiles, Data Recovery, logs) (apps/vectorcraft/src/prefs_dir.rs; apps/vectorcraft/src/profile.rs).
Prefer the automation surfaces over GUI automation; they are the same engine the UI uses.
--control 7979 [--automation-read-root DIR --automation-write-root DIR] (each root may repeat), then either talk the control protocol directly or register the MCP bridge: claude mcp add vectorcraft -- vectorcraft-cli mcp --connect 127.0.0.1:7979 (the bridge forwards each tool call as one control request, so you watch changes live). Add --safe-mode when a plug-in is suspect.vectorcraft-cli mcp --headless or vectorcraft-cli run --in FILE --cmd … --export OUT; for long step lists use run --in FILE --commands steps.json --export OUT (stdin with -). The confinement flags imply --headless and refuse --connect, so a live app must confine itself with the same flags. --safe-mode mcp serves a headless session without plug-ins.script.run is better than a long command_batch when you need branching, loops or file reads. It is transactional (one undo step per changed document, rollback on error), reports changed/written/slowestCommands, and can be stopped with script.stop. Remember it is ES5.1 + E4X, has no Illustrator DOM, and can only read files in the script's folder/read roots. Call vc.run(id, params) for commands; get exact ids from command_list/engine.commands.doc_inspect {depth: 0} for the skeleton, then scope with ids/kind/limit/offset; document.find locates nodes (name/kind/text plus within, intersects, size, thickness, area and anchor-count filters) and document.node {id, summary: true} slices one; read paint with paint.proxies; list formats and their options with document.formats. For exhaustive parameter docs use engine.apiReference or MCP resource vectorcraft://commands/reference. On large documents drill — never dump document.json.draw_path (SVG d or points), draw_shape, add_text (point/area/path, vertical, justify), set_paint (reports the painted count), apply_effect, pathfinder, transform, text_wrap, create_graph, or any command id via command_run. draw_path/draw_shape style and apply effects in the same atomic batch: a refused paint leaves no object and no undo step. Group edits with command_batch {atomic: true} so one undo step is recorded. Unknown param keys are rejected with a did-you-mean before anything runs.answer_dialog: set the fields of the app's open dialog, then {"action": "confirm"} or {"action": "cancel"} — the MCP twin of ui.dialog.set/confirm/cancel (which errors on a field the dialog does not read). Script alert/confirm/prompt take answers when headless; in the app they wait for the person.svgFilter.define/import/apply for SVG-filter effects (no bundled filters — define or import one), text.spelling.check/suggest and edit.autoSpellCheck for proofing, type.dynamicText to fit type to brackets/area frames, type.compositeFonts.set/import/export for CJK composite fonts, assets.add3D + assets.set3DFormat + assets.export3D for OBJ/glTF/USDA/USDZ, document.compare for image diffs, edit.newDocumentFromState to fork a History row, prefs.export/import to reproduce a profile, object.setPixelAligned/select.object.notAlignedToPixelGrid for pixel-grid work, and actionSet.read to inspect an .aia action set before rebuilding it with the Actions panel or action.batch..rtf/.docx/.doc for area type. Fonts: text.addFontFiles copies files into the app's Fonts folder; Japanese/Chinese/Arabic faces also come from the optional craft-fonts build input (README.md). Reusable logic can ship as a .wasm plug-in (ABI v1; API level 2 for host imports/permissions; docs/plugins.md) or an importer plug-in for a read-only format..vectorcraft is documented, versioned JSON (v4; optional gzip detected by content; unknown keys from newer versions are preserved by save). Prefer document.save {version: 1|2, compress} for downgrades over hand-editing; for repairs, open → inspect → command → save, and round-trip verify. separateArtboards writes one file per artboard.render_preview, ui.render, screenshot; document.compare {path, artboard, threshold, diffPath} returns rmse and a diff PNG for a reference image; reopen the export (app.open, vectorcraft-cli info) and diff warnings; vectorcraft-cli bench/perf for timings. Never trust a silent export.ui.screenshot needs a presented frame and fails after ~8 s when the screen is locked, the window is minimized or covered; window geometry is not stable across machines); write .ai private editing data or Affinity files (not implemented — don't promise them); assume PSD opens with layers when using File › Place (it is merged there); run reference-app .jsx scripts that rely on the Illustrator DOM (only vc-bridge scripts run); use Adobe apps to create or verify anything (repo clean-room rule; produce test art in-repo instead, AGENTS.md).Alpha software: verify by round-trip, never by assumption.
.vectorcraft → export the target format → reopen the export in VectorCraft and in the consuming app (browser for SVG, reader for PDF) → compare. Check warnings on open and export at every step (convert returns importWarnings beside export warnings). document.compare automates the pixel part against a reference PNG..vectorcraft and treat SVG/PDF/EPS/.ai as deliverables: formats lose data (PDF-compatible .ai carries no Illustrator editing data; legacy v7 loses transparency/effects/names; EPS flattens opacity; DXF approximates gradients/patterns; perceptual/dithered gradients and SVG filters can become images). 3D meshes are a separate asset export, not a document format.convert refuses to overwrite its input when reading it left things out unless --replace-lossy; take that gate seriously.--automation-read-root/--automation-write-root (repeatable; both MCP and app), VECTORCRAFT_CONFIG_DIR for an isolated profile, and the control port on loopback only while in use (it has no authentication). Start with --safe-mode / vectorcraft-cli --safe-mode when plug-ins are untrusted; reserve --allow-plugin-grants for plugins you have reviewed.script.run, read changed, written, fuelUsed and the console; a failed run rolls the documents back but leaves files it wrote, named in the report. Run script.check on unfamiliar .jsx files first.SOURCE_DATE_EPOCH when diffing exported bytes; without it PNG/PDF/EPS/.ai/zips/native saves record the wall clock.vectorcraft-cli commands | jq length, MCP tools/list, control engine.commands give the live registry for whatever build you actually run.f4922aa7ac99a4f6d56fc68a83a44945207ec610 ("Merge tested main for v0.24.1"), shallow clone at the tag with the v0.22.0 ref present for set diffs, clean tree. Installed app matches the tag (vectorcraft 0.24.1); CFBundleIdentifier ai.storyteller.vectorcraft; date of audit 2026-11-12.README.md, ROADMAP.md, AGENTS.md, Cargo.toml, docs/gaps.md, docs/target-app-parity.md, docs/file-format-parity.md, docs/mcp.md, docs/control-protocol.md, docs/plugins.md, docs/ui-parity.md, docs/type-parity.md, docs/effects-parity.md, docs/localization-parity.md, docs/three-d.md, docs/image-trace-quality.md, docs/affinity-validation.md, crates/affinity/README.md.apps/vectorcraft-cli/src/main.rs, apps/vectorcraft-cli/tests/it/script.rs, apps/vectorcraft/src/{main,automation_args,prefs_dir,profile,mac_tablet}.rs, apps/vectorcraft-web/src/api.rs, crates/js/src/lib.rs, crates/engine/src/script/{mod,console,dollar,dialogs,files,folder,include}.rs, crates/engine/src/cmd/{scripts,svgfilter,spelling,compositefonts,assets,actionset,apiref,edit,docmenu,gradient,paint,typecmd,typemenu,plugin,prefscmds}.rs, crates/engine/src/cmd/fileio/{formats,save,encode,commands,psdlayers,heifread,jxlread,mesh3d,importer,pdf}.rs, crates/engine/src/cmd/object/pixelgrid.rs, crates/engine/src/{guard,schemas}.rs, crates/mcp/src/{server,prompts,resources,ui_catalog,headless}.rs, crates/mcp/src/tools/definitions.rs, crates/ui-egui/src/{control,state,panel_docking,doc_windows}.rs, crates/ui-egui/src/menus/{ui_commands,tree}.rs, crates/ui-egui/src/panels/{script_console,brushes}, crates/ui-egui/src/dialogs/{effect_gallery,recolor,custom_dictionary}.rs, crates/ui-egui/src/canvas/tool_overlays.rs, crates/ui-egui/src/i18n/, crates/format/src/lib.rs, crates/doc/src/{metadata,variables,guides,document_guides,limits}.rs, crates/doc/src/text/composite.rs, crates/effects/src/{catalog,group,pixel,svg_filter}.rs, crates/effects/src/solids/classic.rs, crates/text/src/{colr,svg_glyph,bitmap}.rs, crates/three-d/src/lights.rs, crates/tools/src/{catalog,lib}.rs, crates/plugins/src/{manifest,runtime,permissions,wat,host}.rs, crates/apischema/src/lib.rs, crates/scriptcheck/src/, crates/pdf/src/export.rs, crates/svg/src/export.rs, crates/eps/src/import/ai/, crates/affinity/, crates/color/src/cms/icc.rs.git rev-parse HEAD for the pin (v0.24.1, f4922aa…, inspected 2026-11-12); git diff --shortstat v0.22.0..HEAD for the delta (1,304 files, +242,142/-11,521); command ids parsed from every cmd!/query cmd! literal at both tags and set-diffed; tool(/t(/UI_COMMANDS entries, prompts, resources, control arms, formats, effects, panels and languages parsed from source with the extracts listed in evidence.md. No build, no test run, no GUI launch; the installed bundle (matches the tag) was only read (Info.plist, --version).evidence.md (claim → evidence path → tier, count methods and doc drift).