gemini_generate_image
Generate images with Google Gemini AI while maintaining consistent styles across sessions using reference images and aspect ratio controls.
Instructions
Generate images using Gemini's image generation capabilities. Supports session-based image consistency for maintaining style/character across multiple generations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "gemini_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the image to generate | |
| aspect_ratio | No | Aspect ratio for the generated image. Overrides session setting if provided. | |
| output_path | No | Optional path where to save the generated image. If not provided, saves to ~/Documents/nanobanana_generated/ | |
| conversation_id | No | Session ID for maintaining image history and consistency across generations | |
| use_image_history | No | If true, includes previous generated images from this session for style/character consistency | |
| reference_images | No | Array of file paths to reference images for style/character consistency | |
| enable_google_search | No | Enable Google Search for real-world reference grounding |