gemini_image_tool
Generate or edit images using AI-driven prompts, save outputs to specified directories, and customize settings like temperature, top P, and top K for tailored results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | Output file name template | image-${year}_${month}_${day}_${hour}_${minute}_${second}.png |
| inputImage | No | Image path (required for edit_image) | |
| maxOutputTokens | No | Maximum number of output tokens | |
| operation | Yes | generate_image: Generate new image, edit_image: Edit existing image | |
| outputDir | Yes | Output directory path | |
| prompt | Yes | Prompt for image generation/editing | |
| temperature | No | Temperature of the model | |
| topK | No | Top K of the model | |
| topP | No | Top P of the model |
Input Schema (JSON Schema)
{
"description": "Generate or edit images with Gemini",
"name": "gemini_image_tool",
"properties": {
"fileName": {
"default": "image-${year}_${month}_${day}_${hour}_${minute}_${second}.png",
"description": "Output file name template",
"type": "string"
},
"inputImage": {
"description": "Image path (required for edit_image)",
"type": "string"
},
"maxOutputTokens": {
"default": 8192,
"description": "Maximum number of output tokens",
"type": "number"
},
"operation": {
"description": "generate_image: Generate new image, edit_image: Edit existing image",
"enum": [
"generate_image",
"edit_image"
],
"type": "string"
},
"outputDir": {
"description": "Output directory path",
"type": "string"
},
"prompt": {
"description": "Prompt for image generation/editing",
"type": "string"
},
"temperature": {
"default": 1,
"description": "Temperature of the model",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"topK": {
"default": 40,
"description": "Top K of the model",
"type": "number"
},
"topP": {
"default": 0.95,
"description": "Top P of the model",
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"required": [
"operation",
"prompt",
"outputDir"
],
"type": "object"
}