Background removal
Useedit_image with action: "remove_background":
Upscale
Useedit_image with action: "upscale" and optional scale parameter ("2" or "4"):
Expand / outpaint
Useedit_image with action: "expand". You can specify pixel amounts per direction (left, right, top, bottom) or use aspect_ratio (e.g., "16:9") to auto-calculate the padding:
Chaining operations
Run multiple editing steps in sequence by passing the output asset ID of one step into the next.edit_image (action: remove_background), then call edit_image again (action: upscale, scale: "4") with the resulting asset ID.
For repeatable multi-step workflows, consider creating a pipeline instead.
Batch editing
Theedit_image tool accepts an array of images for batch processing:
assets to list the collection contents, then edit_image with an array of asset IDs.
Editing tools summary
Related
- Remove Background (User Guide) — in-app background removal
- Upscale (User Guide) — in-app upscaling
- MCP Server — full MCP tool reference