open_document
Import a PNG image as a new pixel art document, converting it to a limited color palette with up to 63 colors. Supports loading from file path or base64 data.
Instructions
Import a PNG image as a new document from exactly one of png_base64 or path, quantizing to at most max_colors colors. Max 256x256.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a PNG on the server filesystem (mutually exclusive with png_base64) | |
| max_colors | No | Max palette colors (default 16) | |
| png_base64 | No | PNG file content, base64-encoded (mutually exclusive with path) |