nano_banana_generate_image
Generate images from text prompts or edit existing images by providing paths alongside a prompt.
Instructions
Generate or edit images with Nano Banana.
Pass only prompt for text-to-image generation.
Pass image_paths plus prompt for image editing / image-to-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": "nano_banana_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | gemini-3.1-flash-image-preview | |
| prompt | Yes | ||
| image_size | No | ||
| output_dir | No | ||
| image_paths | No | ||
| aspect_ratio | No | ||
| include_text | No | ||
| enable_web_search | No | ||
| request_timeout_s | No | ||
| enable_image_search | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||