export_game_asset_bundle
Export an Aseprite sprite as a game-ready bundle: flattened PNG, animated GIF, packed sprite sheet with JSON, per-tag GIFs, and manifest.json. Art is assessed first, so defects can block the export.
Instructions
Export a sprite into a game-ready bundle directory: a flattened PNG, an animated
GIF, a packed sprite sheet (+ JSON data), a GIF per animation tag, and a
manifest.json describing everything.
**The art is judged before anything is written.** Every frame is assessed the way
`assess_sprite` judges one (all of them in one launch, identical frames once), and
the result is the manifest's `assessment` section. A *defect* refuses the bundle: an
absent keyline on a figure of several masses, or, with `ramp`, a drawn pixel that is
not on it. Those are the readings that scored as faults against sprites known to be
good and bad. Every other reading is an *observation*, listed and never blocking,
because observations do not separate good art from poor: on this project's own
gallery its best sheet draws three and a featureless blob none. So a clean assessment
means none of the measured faults, not that the art is good; looking at
`render_preview` is still the only judge of that.
Args:
overwrite: Replace existing bundle files (default False = no-clobber). Every
planned output is checked up front, so the bundle fails before writing any
file if a target already exists.
ramp: The colours the art is drawn from, as given to `assess_sprite`. When set,
every drawn pixel must be one of them. Refused before anything is launched
past the colour-list cap or in a notation that does not parse. On an indexed
sprite whose palette cannot hold it exactly, `assessment.palette` says so,
and a refusal for pixels off it carries that reading.
allow_defects: Bundle even when the assessment finds a defect (default False).
The defects are then the manifest's `warnings`, and `assessment.waived` is
true.
subject: "character" (the default) or "prop", as `assess_sprite` takes it. A
prop is not given the limb or keyline readings, so a vase or a lantern whose
narrowings are its shape is not refused for a missing keyline between masses
it does not have; a pixel off `ramp` still refuses it. Anything else is
refused before anything is launched or written.
Returns a ``workflow_manifest.v1`` manifest (the same object is also written to
disk as manifest.json inside the bundle).
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": {
"filename": "<filename>"
},
"name": "export_game_asset_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ramp | No | ||
| scale | No | Default: 1. | |
| subject | No | Default: "character". | character |
| filename | Yes | ||
| overwrite | No | Default: false. | |
| bundle_name | No | ||
| allow_defects | No | Default: false. |