draw_line_at
Draw a line on a specified layer and frame in an Aseprite file, with options for color, thickness, and automatic layer creation.
Instructions
Draw a line 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. x1 (int): The x coordinate of the first point of the line. y1 (int): The y coordinate of the first point of the line. x2 (int): The x coordinate of the second point of the line. y2 (int): The y coordinate of the second point of the line. color (str, optional): The color to draw the line with. Defaults to "#000000". thickness (int, optional): The thickness of the line. 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>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "draw_line_at"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| color | No | #000000 | |
| filename | Yes | ||
| thickness | No | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |