Inspect And Cutout
inspect_and_cutoutInspect a source photo for resolution, blur, edge cropping, and product size, then write a transparent PNG cutout using a local ONNX model.
Instructions
Inspect a source photo and write an RGBA cutout using a local ONNX model.
Requires the studio extra: pip install 'amazon-listing-kit[studio]'.
model is isnet (default, Apache-2.0, ~180 MB, downloaded on first use),
birefnet (MIT, ~220 MB), or fused (both). The inspection flags low
resolution, blur, a product cut off at the edge, or a product that is too
small in the frame. The cutout is written as a transparent PNG.
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": "inspect_and_cutout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | isnet | |
| image_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||