generate_image
Generate an image from a text prompt, saving the output as a PNG. Transform written descriptions into visual content with Google's Gemini model.
Instructions
Generate an image from a text prompt with Gemini (Nano Banana). Saves to output_path.
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>",
"output_path": "<output_path>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| output_path | Yes | Where to save the image (.png). |