draw_polygon
Draw a polygon onto a chosen layer and frame of an Aseprite file, with optional fill and color, to add shapes directly to pixel art or animation cels.
Instructions
Draw a polygon on a specific layer/frame.
Args: filename (str): The path to the Aseprite file. layer_name (str): The name of the layer to draw on. frame_index (int): The index of the frame to draw on. points (List[Dict[str, int]]): The list of points to draw the polygon. color (str, optional): The color to draw the polygon with. Defaults to "#000000". fill (bool, optional): Whether to fill the polygon. Defaults to False. create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
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 |
|---|---|---|---|
| fill | No | ||
| color | No | #000000 | |
| points | Yes | ||
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |