generate_image_from_text
Generates images from user-provided text prompts using Google's Gemini model, turning written descriptions into visual content.
Instructions
Generate an image based on the given text prompt using Google's Gemini model.
Args: prompt: User's text prompt describing the desired image to generate output_image_path: Optional path to save the generated image. If not provided, uses default path.
Returns: Path to the generated image file using Gemini's image generation capabilities
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_from_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| output_image_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |