Generate Cocos Sprite
asset_forge_generate_spriteGenerate a sprite image from a text prompt, clean its alpha/background, and export as Cocos-ready PNG with manifest.
Instructions
Generate a single sprite image, clean its alpha/background, and save a Cocos-ready PNG plus manifest.
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": {
"name": "<name>",
"prompt": "<prompt>"
},
"name": "asset_forge_generate_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable asset name. Used for file names after slugification. | |
| seed | No | ||
| size | No | ||
| style | No | Visual or audio style, e.g. 'cozy pixel art', 'hand-painted fantasy', '8-bit arcade'. | |
| prompt | Yes | ||
| outputDir | No | Directory where generated files should be written. Defaults to server config. | |
| postprocess | No | ||
| negativePrompt | No | ||
| referenceImageUrl | No | Public reference image URL for image-to-image/edit capable providers. | |
| referenceStrength | No | How strongly an image-to-image/edit provider should preserve the reference. | |
| referenceImagePath | No | Local reference image path for image-to-image/edit capable providers. |