generate_asset
Generate images from text prompts using AI models, with optional aspect ratio and image-to-image support.
Instructions
Generate an image asset using AI models.
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_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The text prompt for image generation | |
| modelId | No | The ID of the AI model to use. Defaults to 'google/nano-banana-pro'. | google/nano-banana-pro |
| image_file | No | Absolute local path for image-to-image generation | |
| aspectRatio | No | Aspect ratio (e.g., '1:1', '16:9'). Default depends on model. | |
| image_content | No | Base64 encoded image content for image-to-image |