mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-30 02:04:54 +01:00
file.exportAssets and the MCP tool export_assets write a design's images and vectors into a folder: images as the bytes the file holds, never re-encoded, vectors through the SVG export, and layers with export settings by those settings. Each file says whether it is original, vector or rendered. Files are named by the first 16 hex digits of their SHA-256, so one asset has one file used by every layer listed and exporting again writes nothing. What a layer does to an image that isn't in its bytes (filters, crop, rotation, opacity) is listed, as is why an asset couldn't be handed over. Writes go through file_access, so automation roots confine them.