draw_path
Draw a polyline path on a chosen Aseprite layer and frame from point coordinates, with optional color and thickness. Automatically create missing layers to add paths without manual setup.
Instructions
Draw a path using a polyline 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 points to draw the path with. color (str, optional): The color to draw the path with. Defaults to "#000000". thickness (int, optional): The thickness of the path. Defaults to 1. 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_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | #000000 | |
| points | Yes | ||
| filename | Yes | ||
| thickness | No | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |