draw_text
Add text to sprite layers and frames by rasterizing it as pixel art, with control over font, color, outline, and shadow.
Instructions
Rasterize and draw text into a sprite layer and frame.
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": {
"filename": "<filename>",
"text": "<text>",
"x": "<x>",
"y": "<y>",
"font": "<font>"
},
"name": "draw_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| bold | No | ||
| font | Yes | ||
| size | No | ||
| text | Yes | ||
| color | No | #FFFFFF | |
| anchor | No | topleft | |
| filename | Yes | ||
| antialias | No | ||
| shadow_dx | No | ||
| shadow_dy | No | ||
| layer_name | No | ||
| frame_index | No | ||
| shadow_color | No | ||
| outline_color | No | ||
| outline_width | No | ||
| letter_spacing | No | ||
| outline_diagonal | No | ||
| create_if_missing | No |