Run Supplier Autofix
sirv_run_supplier_autofixFixes a supplier image with AI so it meets your workspace submission rules using failed rules or a prompt. Returns the fixed image URL, fix status, and fixes applied.
Instructions
Fix one supplier image with AI so that it meets the workspace's submission rules.
Use auto mode with the rules the image failed in failed_rules, or prompt mode with an instruction in prompt. Read the rules first with sirv_get_supplier_portal_settings. For one plain edit, such as a background removal, use that tool instead.
It runs up to max_iterations rounds of fixes, such as upscale, background removal, smart crop and AI edits. The source image does not change. Returns the fixed image URL, whether it was fixed, and the fixes that ran.
Credits: spends workspace credits. The cost depends on the fixes that run.
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_url": "<image_url>"
},
"name": "sirv_run_supplier_autofix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto: fix the rules in failed_rules. prompt: follow the instruction in prompt. Default: auto | auto |
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| prompt | No | For prompt mode: what to fix, in words | |
| ai_model | No | Model that plans the fixes. Default: gemini-2-flash | gemini-2-flash |
| image_url | Yes | Public URL of the supplier image to fix | |
| failed_rules | No | For auto mode: the rules the image failed, as the review returned them | |
| enabled_fixes | No | The kinds of fix the tool may use. Default: all of them | |
| upscale_model | No | Upscaler for an upscale fix. Default: esrgan | esrgan |
| max_iterations | No | Most fix rounds to run, 1 to 5. Default: 3 |