Get a library sprite
get_sprite_from_libraryShow one sprite from the user's SpriteForge library: a preview image, its size and palette, and download links - png_url (one frame at 1x with real transparency; add &frame=N for frame N, &scale=N to enlarge) and, for animations and tilesets, sheet_url (every frame in one PNG; it already ends in &cols=N, so replace that number to change the columns). For a tileset it also says which tile is which and how to place them, with the same manifest the studio exports in structuredContent.tileset and as JSON at manifest_url; a multi-terrain map also gets atlas_url, its tiles laid out as the studio's tileset export (png_url is the finished map). The links work without sign-in for 24 hours: in a shell, curl -sSf -o name.png '<url>' saves the file; otherwise give the user the link. Set include_pixels for the palette-index grid. Read-only.
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_sprite_from_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | ||
| include_pixels | No | Also return palette + index grid (default false). |