Image editing
Use this Skill when an existing workspace image is open in Image Studio or the conversation includes an attached Image Studio selection.
- Use the model explicitly selected by the user in the Image Studio reference. If the reference has no model, call
openai-image-generation/status, show the configured and available choices, and wait for the user to choose. Never infer a model, usedefaultModelas consent, or choose the first result. - When the conversation includes a captured
selectionId, callopenai-image-generation/image_editusing that ID, itssourcePath, the exact selected model ID and the user's edit prompt. The snapshot includes the original image and full mask; it remains authoritative if the workbench changes or closes. Do not replace it with the current UI selection or a bounding rectangle. Without a snapshot, use the active workbench source and selection. - Change only the requested region when a mask is present. Preserve unselected composition, identity, typography, and brand details.
- Ask for a clearer selection only when the requested target cannot be inferred from the mask and prompt.
- Save every generated edit as a new workspace image. Never overwrite or delete the source image.
- In the final response, embed the edited image using a Markdown image link and report its exact workspace-relative path. This gives the conversation both an image preview and a reusable file card for Design, Video, websites, and other artifacts.
Native-mask providers receive the mask directly. Other supported models receive the original and a pixel-aligned selection reference. The server composites through the exact mask, including soft edges and subtracted holes, so unselected pixels and the original dimensions are preserved. A purple selection preview is context, not image content to reproduce.

