draw_pattern
Draw pixel art in Aseprite from ASCII rows and a single-character color legend, skipping blank or specified characters to leave existing pixels unchanged.
Instructions
Draw pixel art from ASCII rows + a single-character color legend. Characters matching skipChar (default '.') and spaces leave existing pixels unchanged.
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": {
"file": "<file>",
"rows": "<rows>",
"legend": "<legend>"
},
"name": "draw_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Top-left X offset (default 0). | |
| y | No | Top-left Y offset (default 0). | |
| file | Yes | ||
| rows | Yes | Array of equal-width ASCII strings representing pixel rows. | |
| frame | No | ||
| layer | No | ||
| legend | Yes | Map of single character -> hex color, 'transparent', or palette index. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| skipChar | No | Character to skip (default '.'). |