Remove a design background
process_transparencyRemoves a solid or tinted green background from a generated image, keys it to true RGBA transparency with a tight crop, and uploads a new image for product mockups.
Instructions
Key a solid background out of a generated image to true RGBA transparency (flood-fill + enclosed-region sweep + tight crop) and upload the result. Runs server-side (Python + Pillow). If the generator produced a tinted/muted green instead of pure #00FF00, it auto-recovers by re-keying in green-dominance mode (safe for art with no bright-green/lime elements). Returns a NEW image_uuid plus keying_mode.
[#3cd7e7]
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_uuid": "<image_uuid>"
},
"name": "process_transparency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Bypass the pure-green safety check and box-key anyway. Use only when you have visually confirmed the palette has no colors near the green background. | |
| image_url | No | The image URL, if known (else resolved from the uuid). | |
| workspace | No | ||
| image_uuid | Yes | ||
| background_mode | No | How to detect the background. auto (default): box-key a pure-green screen, else auto-recover in dominance mode for a tinted/muted green. box: strict pure-#00FF00 keying (best for colorful designs with warm/lime elements). dominance: green-dominance keying, robust to tinted green screens (safe when the design has no bright-green/lime elements). |