add_cutout_outline
Traces the visible edge of a background-removed image into a stroke-only vector outline placed above the cutout for a sticker-style border. Returns the new outline ID per image.
Instructions
Add an outline around the subject of an image whose background was removed (remove_background first): the cutout's visible edge is traced into a new vector element placed directly above the image, aligned with its crop, rotation, flip and scale; stroke only, no fill, outside stroke, round joins (the sticker look). The outline is an ordinary element afterwards (restyle, move or delete it). ids: the image element ids (or #refs; a frame, group or instance id reaches the cut images inside it). color: optional #RRGGBB stroke color (default plain white). width: optional stroke width in px (default 2 percent of the image's short edge). Answers the new outline id per image, or the honest refusal (no removed background, nothing visible to trace, a tiled image). Runs locally: no Brilliant AI usage.
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": {
"canvasId": "<canvasId>",
"ids": "<ids>"
},
"name": "add_cutout_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Element IDs (or #refs) of images whose background was removed. Required. | |
| color | No | Stroke color #RRGGBB. Optional. | |
| width | No | Stroke width in px. Optional. | |
| canvasId | Yes | Canvas ID. Required. | |
| sessionId | No | Session ID from init. Optional. |