Generate an animated sprite with ChatGPT
generate_spriteGenerates a sprite sheet from a character prompt and motion, then cuts and aligns frames locally into a transparent GIF, atlas, and manifest for animation use.
Instructions
Ask ChatGPT to draw poses in one sprite sheet; Backdraw cuts and aligns frames locally, saving a transparent GIF, atlas and manifest. Retries once in a new chat if count, empty-frame or identity checks fail. Returns a job_id; follow with job_status. For another motion of the same character, pass a frame from the previous GIF folder or a character PNG in reference_images.
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": {
"prompt": "<prompt>",
"motion": "<motion>"
},
"name": "generate_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| view | No | side | |
| frames | No | ||
| motion | Yes | ||
| prompt | Yes | Character description. | |
| background | No | transparent | |
| output_dir | No | ||
| wait_seconds | No | Return within this many seconds. The default 45 keeps each call under the 60-second tool limit some clients have. If the job has not finished by then, the result says STILL RUNNING or QUEUED: call job_status with its job_id again. | |
| filename_hint | No | ||
| include_preview | No | ||
| reference_images | No |