draw_polygon
Draw a polygon on a specific layer and frame in Aseprite. Define vertices as points, choose color, and optionally fill the shape.
Instructions
Draw a polygon on a specific layer/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>",
"layer_name": "<layer_name>",
"frame_index": "<frame_index>",
"points": "<points>"
},
"name": "draw_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| points | Yes | ||
| color | No | #000000 | |
| fill | No | ||
| create_if_missing | No |