remove_background
Cuts the background from real photos on the canvas, keeping the subject’s exact pixels and making the background transparent in place. Use it to cut out real images without regenerating them.
Instructions
Remove the background from real photos on the canvas: the subject keeps its exact pixels (the real face, the real product) and the background becomes transparent, in place, in the same image fill (crop, scale mode and opacity kept). Use it instead of generate_image whenever the image is a real photo and the user wants it cut out: "a real photo, keep the pixels, cut the background". generate_image regenerates the picture and invents new pixels. ids: the element ids (or #refs) whose image fills to cut (a frame, group or instance id reaches every image inside it); one request per distinct image. A cut fill reads back as img(, ..., src()); execute_commands restore_background puts the original back. Answers the new asset path per element, or the named failure (no subject, allowance used, lane unavailable, image missing). add_cutout_outline then traces an outline around the cut subject. Runs on Brilliant AI: a signed-in account's Brilliant AI usage; in the built-in chat, a signed-out user gets the free daily cutouts of the /remove-background page with no account, and is told when they are used up.
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": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Element IDs (or #refs) holding the image fills to cut; a frame, group or instance id cuts every image inside it. Required. | |
| canvasId | Yes | Canvas ID. Required. | |
| sessionId | No | Session ID from init. Optional. |