remove_background
Remove the background from an image to isolate the main subject. Provide the image path; optional output filename and directory are also supported.
Instructions
Remove the background from an image.
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 |
|---|---|---|---|
| filename | No | Output filename | |
| image_path | Yes | Path to the image file | |
| output_dir | No | Override output directory |