Masked edit: replace, remove, change material (Magic Wand AI)
luw_magic_wandEdit only a masked area of an image by applying a prompt, removing existing content, or re-surfacing it with a material image; white in the mask marks the area to change.
Instructions
Luw.ai Magic Wand AI: change only a masked area of an image. Give a prompt to add/replace what's there, remove=true to erase it, or material_image to re-surface it (e.g. new flooring or wall tiles). The mask is a black-and-white image the same size as the input; white marks the area to change. Get masks from luw_segment. Costs 1 credit.
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": "<image>",
"mask_image": "<mask_image>"
},
"name": "luw_magic_wand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image to edit (public https:// link or data: URI; the local npx server also accepts a file path). | |
| engine | No | Luw.ai model: symphony (Symphony-3, the default: the higher quality) or aria (quicker, for everyday work). If the user picked a model earlier in this conversation, use that one. | symphony |
| prompt | No | What to put in the masked area. | |
| remove | No | Remove whatever is in the masked area. | |
| mask_image | Yes | Black/white mask, white = area to change (public https:// link or data: URI; the local npx server also accepts a file path). | |
| enhance_prompt | No | Let Luw.ai's prompt enhancer expand a short prompt. | |
| keep_structure | No | Preserve the masked area's geometry/lines while changing its look (structure-guided fill). | |
| material_image | No | Material/texture to apply to the masked area (public https:// link or data: URI; the local npx server also accepts a file path); luw_list_options kind="materials" has a ready-made catalog. |