remove_background
Cuts the subject out of a layer using color-based flooding or AI segmentation, creating a transparency mask, erasing the background, or selecting the subject.
Instructions
Cut the subject out of a layer. mode: mask (non-destructive transparency mask, default), erase, or
select (just select the subject). method: color (local, no AI: floods the plain background in from the
image border, within tolerance of the border colour or of color), ai (a segmentation model via
stability / replicate / fal / a1111 with the rembg extension), auto (ai if a capable backend answers,
else color).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | mask | |
| color | No | ||
| layer | No | ||
| model | No | ||
| method | No | auto | |
| backend | No | ||
| feather | No | ||
| tolerance | No |