remove_background_file
Removes backgrounds from local PNG, JPG, JPEG, or WEBP images and saves transparent PNGs or solid-color cutouts to disk for clean product, portrait, and design assets.
Instructions
Remove the background from a local image file (PNG, JPG, JPEG, WEBP) using DropBG and save the transparent PNG or solid-color cutout to disk.
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": {
"input_path": "<input_path>"
},
"name": "remove_background_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output resolution preset. | auto |
| format | No | Output image format. | auto |
| bg_color | No | Optional 6-digit hex color (e.g. #FFFFFF for Amazon/passport white backgrounds). Omit for transparent cutout. | |
| defringe | No | Apply color decontamination on hair/fur edges. | |
| input_path | Yes | Path to the local source image file. | |
| output_path | No | Path to save the processed image. Defaults to <dir>/<name>_cutout.png (or .jpg when format is jpg/jpeg or bg_color is set with format "auto"). |