Upload a sprite to the library
upload_spriteAdd an image to the user's SpriteForge library as a new sprite. Pass png_base64 (a PNG up to 128x128 and 256 colours; pixels under 50% alpha become transparent) or art (palette + index grid you drafted). For a file on disk in a shell, don't paste base64: upload it with curl to the free editor endpoint (see the edit-sprite skill) and call save_to_library with the returned id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| art | No | Pixel art in SpriteForge's format: palette = hex colours, grid = rows of palette indexes (-1 = transparent). Optional frames for an animation, each { grid } on the same palette. | |
| name | No | Sprite name (default "sprite"). | |
| png_base64 | No | A PNG file, base64-encoded (a data: URL prefix is fine). | |
| project_id | No | Project to add it to (default: the most recently used). |