draw_text
Draws or measures crisp pixel-art text with a built-in 5x7 ASCII bitmap font, supporting multiline alignment, scaling, drop shadows, and 1px outlines.
Instructions
Draw or measure crisp pixel-art text using a built-in cross-platform 5x7 ASCII bitmap font (no external font files needed; supports drop shadow & 1px outline).
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>",
"text": "<text>"
},
"name": "draw_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Top-left X coordinate (default 0). | |
| y | No | Top-left Y coordinate (default 0). | |
| file | Yes | ||
| text | Yes | Text string (supports '\n' multi-line). | |
| align | No | Multi-line alignment (default 'left'). | |
| color | No | Text color (default '#ffffff'). | |
| frame | No | ||
| layer | No | ||
| scale | No | Integer pixel scale (default 1). | |
| action | No | Default 'draw'. | |
| source | No | For action='measure'. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| spacing | No | Character spacing in unscaled px (default 1). | |
| lineSpacing | No | Line spacing in unscaled px (default 2). | |
| shadowColor | No | Optional drop-shadow color offset by (+scale, +scale). | |
| outlineColor | No | Optional 4-way 1px outline color. |