Generate Image
generate_imageGenerate an image from a text prompt, upload it to Firebase Storage, and return a signed download URL, compressing only when needed and avoiding local disk storage.
Instructions
Generate an image from a text prompt, upload it to Firebase Storage, and return a signed download URL. The image is compressed only if it exceeds the size limit. Nothing is written to local disk and the image is not returned inline.
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 description of the image to generate | |
| resolution | No | Source resolution: '1K' (default), '2K', or '4K'. Final file is always compressed to stay small | |
| aspect_ratio | No | Aspect ratio, e.g. '1:1', '16:9', '9:16', '4:3'. Defaults to 1:1 | |
| inline_preview | No | Whether to include an inline image preview in the response. Defaults to the server's NANO_BANANA_INLINE_PREVIEW setting. Set false to return the URL only (smaller, faster response). |