krita_paint_line
Paint a single native line in Krita using integer coordinates and endpoint pressures. Specify start, end, color, size, opacity, and preset to create one distinct stroke.
Instructions
Paint one native line with integer image coordinates and endpoint pressures. Each call is a separate native stroke.
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": {
"instance_id": "<instance_id>",
"operation_id": "<operation_id>",
"document_id": "<document_id>",
"node_id": "<node_id>",
"preset_id": "<preset_id>",
"size_px": "<size_px>",
"opacity": "<opacity>",
"color": "<color>",
"start": "<start>",
"end": "<end>"
},
"name": "krita_paint_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| color | Yes | ||
| start | Yes | ||
| node_id | Yes | ||
| opacity | Yes | ||
| size_px | Yes | ||
| preset_id | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes | ||
| pressure_end | No | ||
| pressure_start | No |