gemini_generate_image
Generate an image from a text prompt using Google Gemini and save it to assets/images. Optionally override the model or set a custom filename for the saved output.
Instructions
Generate an image with Google Gemini (Nano Banana) and save to assets/images.
Args: prompt: Text description of the image to generate. model: Override the model id (default from GEMINI_IMAGE_MODEL / gemini-2.5-flash-image). Newer option: a Nano Banana 2 / Gemini 3.x Flash Image id if enabled on your key. filename: Optional base filename (without extension).
Returns: A human-readable summary listing the saved file path(s).
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 |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |