export
Save pixel art documents to PNG, GIF, or Aseprite JSON files. Returns absolute file path for the exported file.
Instructions
Export the document to a real file and return its absolute path. png: one frame with true transparency. gif: all frames animated. aseprite_json: JSON with embedded spritesheet. This is delivery for humans — the response contains no rendered image; use view/view_frames for perception.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | gif only: loop forever (default true) | |
| path | No | File path to write (default: <data dir>/exports/<doc_id>.<ext>) | |
| frame | No | Frame index, 0-based (default: active frame) | |
| scale | No | Nearest-neighbor scale factor (png/gif only; default 4, set per-project with the PIXEL_MCP_EXPORT_SCALE env var) | |
| doc_id | Yes | Document id | |
| format | Yes | ||
| return_base64 | No | Also return the file bytes as base64 text (default false) |