gemini_edit_image
Modify existing images using text prompts while maintaining style consistency through session history and reference images. Supports aspect ratio adjustments and real-world reference grounding.
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 | |
| aspect_ratio | No | Aspect ratio for the edited image. Overrides session setting if provided. | |
| output_path | No | Optional output path. If not provided, saves to ~/Documents/nanobanana_generated/ | |
| 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 |