Fix Main Image
fix_main_imageReplaces a product image backdrop with pure white, reframes the product to fill about 88% of a square JPEG, and returns a fresh Amazon compliance report.
Instructions
Replace the backdrop with pure white, reframe the product, and re-check.
Writes a square JPEG (default 2000×2000) with the product filling about 88% of the frame on RGB 255, 255, 255, then returns a fresh compliance report for the written file. Works on light-grey or off-white backdrops; busy scenes may still need a manual cutout.
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>",
"output_path": "<output_path>"
},
"name": "fix_main_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| image_path | Yes | ||
| output_path | Yes | ||
| target_fill | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||