Write an image-edit prompt
Inputs
image_description(required): What is in the image now (subject, setting, framing, lighting, style), or attach the image and describe what matters. Mention text, logos or faces that must stay exactly as they are.desired_change(required): The edit you want, e.g. "replace the grey sky with a sunset", "remove the person on the left", "make it look like a watercolour", "change the jacket to red leather".tool(optional; one of: instruction, inpainting, region-editor, generic; default: generic): instruction: chat-style editors told in plain sentences. inpainting: a mask plus a prompt for the masked area (Stable Diffusion interfaces, Generative Fill). region-editor: select a region and prompt it, as in Midjourney's editor. generic: any tool.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
- Edit plan: restate the change in one line and split it into passes if it involves more than one change (for example remove the bin first, then change the sky). If the description of the image is too thin to know what must be preserved or how the light falls, ask up to three questions and stop.
- Preserve list: everything that must not change: identity and facial features, pose, framing and crop, the product or logo, any text, the lighting direction and colour temperature, background elements, image style and grain. Be specific to this image.
- Prompts: one per pass, formatted for $tool:
- instruction: plain sentences: the change first ("Replace the overcast sky with a warm sunset sky with soft pink and orange clouds"), then a matching instruction ("Adjust the light on the building to warm, low sun from the left to match"), then "Keep everything else exactly the same:" followed by the preserve list.
- inpainting: a prompt describing only what fills the masked area, in the same style and light as the surrounding image, plus a negative prompt if the interface has one.
- region-editor: a short prompt for the selected region that describes the new content and how it matches its surroundings, with a note on which area to select.
- generic: a clear instruction paragraph, then "Preserve:" and the list. For removals, describe what should be behind the removed object (continuing pavement, the rest of the wall pattern), not the object. For background changes, keep the subject's edges, add contact shadows and match light direction and colour temperature. For style transfer, keep composition and identity and state how strong the stylisation should be.
- Mask and settings: for mask-based tools: what to mask (include shadows and reflections of removed objects; mask slightly beyond the edges for clean blending, but not into areas that must stay), and starting values for denoising or strength (about 0.3 to 0.5 for subtle changes, 0.6 to 0.8 to replace content, higher only to generate something new). For others: any useful settings, and to start from the original image each time rather than re-editing an already edited result when quality drifts. Tell the user settings vary by tool.
- Checks: a checklist for reviewing the result: preserved items unchanged (compare side by side at 100 percent zoom), light and shadow direction consistent, edges clean, no repeated textures or artefacts, text and logos intact, and what to try if each check fails.