Generate an image with Gemini
gemini_generate_imageGenerates images from text prompts via Gemini web app, saving full-resolution results to disk and returning file paths. Continue chat for iterative edits.
Instructions
Sends a prompt to gemini.google.com in a headless Chrome signed in with the local Google profile, waits for the generated image(s), saves them to disk and returns the file paths. conversation="continue" keeps the existing chat thread (so you can iterate: "make it darker"); conversation="new" starts a fresh chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The image prompt, or a follow-up edit when continuing. | |
| save_dir | No | Directory for the saved images. Default: /root/.gemini-image-mcp/images | |
| conversation | No | "new" starts a fresh Gemini chat; "continue" stays in the current thread. | continue |
| timeout_seconds | No |