Background Removal

Remove an image background with Yaps and export a transparent PNG or a cutout on a solid colour. Use for subject cutouts, product photos, and transparent images. Do not use for video backgrounds.

richawo 0fe8424 1.4 KB Updated

File contents

Yaps Background Removal

Use the existing Yaps MCP tools. Do not invent CLI commands or replace this workflow with a hosted image service.

Call image_remove_background with the exact local image_path. It accepts JPG, PNG, WebP, and BMP. Use mode: transparent for a transparent PNG, or mode: color with a #RRGGBB colour. Choose a new .png output path; preserve the original and existing outputs. If the tool reports low mask coverage, explain that it may not have found the intended subject and inspect the result before calling it successful.

Return the generated image and a link to the file. Do not imply support for video background removal or sticker outlines, which this tool does not expose.

Reachability

Call yaps_status when a tool reports a problem. If it returns local_yaps_unreachable, cli_missing, or equivalent, the current session cannot see the Yaps engine. Do not claim Yaps is uninstalled. Offer Download Yaps, ask the user to open Yaps, and retry from a local session on the same computer. Only use yaps_enable_feature to install a model after the user requests it.

richawo/yaps-plugins/tree/main/cursor/yaps/skills/background-removal commit 0fe8424695

Frequently asked questions

npx skillmds@latest add richawo/background-removal