Get pixel art asset PNG
get_assetFetch a library asset by id. Single-artboard files return one flattened PNG. Multi-artboard MagicPixel documents (many separate sprites in one file — NOT a packed spritesheet) return an artboard list plus up to 8 individual artboard PNGs; pass artboard_id or artboard_name to fetch one board. Captions include artboard size, content_bbox (tight subject bounds + fill≈%), and Generate-with-AI preflight warnings (off-center / brush mismatch / Shrink|Expand). Only off-center blocks Variants/Directions (fix_preflight: true re-centers); brush and size findings are advisory (fix_preflight: "all" applies them). Reuse artboard size as generate_pixel_art.size when adding sprites to the same set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset_id": "<asset_id>"
},
"name": "get_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | Asset id (from list_assets). | |
| artboard_id | No | Optional artboard id from get_asset. Multi-artboard files need artboard_id or artboard_name to pick one sprite; omit for single-artboard assets. | |
| artboard_name | No | Optional artboard name from get_asset (e.g. "rocks_crystal"). Alternative to artboard_id. |