generate_image
Generate an image from a detailed text prompt using Gemini 2.5 Flash. Optionally save the result to a local file.
Instructions
Generate an image from a text prompt using Gemini 2.5 Flash Image
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": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed scene description. Use photographic terms for photorealism. | |
| saveToFilePath | No | Optional path to save the image (png/jpeg by extension) |