remove_background
Remove backgrounds from images using AI segmentation. Provide an image path and get a foreground cutout with optional alpha matting.
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": {
"image_path": "<image_path>"
},
"name": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | u2net | |
| image_path | Yes | ||
| output_path | No | ||
| alpha_matting | No | ||
| try_floodfill_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||