generate_image
Create images from text descriptions for illustrations, diagrams, and icons. The image is saved to the current working directory.
Instructions
Generate an image from a text description using Gemini (nano banana). Use this when the user needs illustrations, diagrams, icons, or any visual content. The image will be saved to the current working directory.
Args:
prompt: Description of the image to generate
filename: Output filename (default: output.png)
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 | ||
| filename | No | output.png |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |