gemini_edit_image
Edit existing images with natural language instructions. Reference previous generations or style images to keep edits consistent.
Instructions
Edit or modify existing images based on prompts. Supports session history references ('last' or 'history:N') and image consistency features.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | Path to the original image. Use 'last' for most recent generated image, or 'history:N' (e.g., 'history:0') to reference by index | |
| edit_prompt | Yes | Instructions for how to edit the image | |
| output_path | No | Optional output path. If not provided, saves to ~/Documents/nanobanana_generated/ | |
| aspect_ratio | No | Aspect ratio for the edited image. Overrides session setting if provided. | |
| conversation_id | No | Session ID for accessing image history and maintaining consistency | |
| reference_images | No | Additional reference images for style consistency (max 10). Supports file paths, 'last', or 'history:N' references. | |
| enable_google_search | No | Enable Google Search for real-world reference grounding |