convert
Convert an image from URL or base64 into pixel art by quantizing its colors to a chosen palette. Returns PNG and sprite data for immediate use.
Instructions
Convert an image (URL or base64) to pixel art by quantizing to a palette. Returns both the PNG and sprite data.
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": {
"source": "<source>"
},
"name": "convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor for output (default 4) | |
| width | No | Target width in pixels (default 16) | |
| height | No | Target height in pixels (default 16) | |
| source | Yes | Image URL (https://...) or base64 data URI | |
| palette | No | Palette ID (default "pico8") |