iterateImage
Refine generated images by editing specific parts, applying style changes, fixing issues, or cropping to coordinates. Use detailed prompts to modify existing images while preserving structure.
Instructions
Refine, modify, or create variations of an existing generated image.
Use this to:
Edit specific parts of an image ("change the background to blue", "add a title")
Apply style changes ("make it more minimalist", "use darker colors")
Fix issues ("remove the text", "make the icon larger")
Crop the image to specific coordinates
For diagram iterations:
Include the original Mermaid/D2/Vega source in your prompt to preserve structure
Be explicit about visual issues (e.g., "the left edge is clipped")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | The session UUID containing the image to iterate on | |
| assetId | Yes | The asset UUID of the image to iterate on | |
| prompt | Yes | Detailed instruction for the iteration. Be specific about what to change. Examples: 'Change the primary color to #0033A0', 'Add a subtle drop shadow' | |
| cropX1 | No | Crop: X coordinate of the top-left corner in pixels | |
| cropY1 | No | Crop: Y coordinate of the top-left corner in pixels | |
| cropX2 | No | Crop: X coordinate of the bottom-right corner in pixels | |
| cropY2 | No | Crop: Y coordinate of the bottom-right corner in pixels |