generate_image
Create new images from text prompts or edit and combine reference images; saves the result as a file for design, social posts, and presentations.
Instructions
Generate a new image from a text prompt or edit and combine reference images using inputImagePaths. Saves the result and returns a file resource. Prompt enhancement expands these arguments into the final image prompt without seeing the conversation, filling in the details they leave open, so pass the user's intent as they gave it; anything you add is expanded too. When a guess at the image's purpose or style would likely miss what the user needs, ask them first.
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 | The user's request, in English. Put text that should appear in the image in quotes, exactly and in its original language; no other text is added. | |
| purpose | No | What the image is for, such as a cookbook cover, social media post, or presentation slide. Prompt enhancement decides the medium, composition, tone, and finish from it, so set it whenever the user has stated or implied it. | |
| quality | No | Set only when the user requests a quality level; otherwise omit to use the server default. fast prioritizes speed, balanced trades speed for detail, and quality prioritizes fidelity. | |
| category | No | Set when the kind of image is clear from the request, so prompt enhancement uses only that kind's guidance: photo, illustration, asset (icon, logo, sticker, or isolated object), ui-screen (app or web interface screen), graphic-design (poster, banner, thumbnail, or other graphic with text), diagram (diagram or infographic), pattern-texture. Omit when unsure. | |
| fileName | No | Use .png, .jpg, or .jpeg to request that output format from OpenAI or Seedream. Other or absent suffixes use the provider default; the saved filename is corrected to the actual image extension. | |
| provider | No | Set only when the user requests a specific image provider; otherwise omit to use the server default. The provider must have its API key configured on the server. | |
| imageSize | No | Set the requested output size to 1K, 2K, or 4K. Omit to use the selected provider and quality preset's default. With Seedream, use 1K or 2K. | |
| aspectRatio | No | Set the requested output aspect ratio. Omit to use the provider default. OpenAI does not support 1:4, 1:8, 4:1, or 8:1. | |
| blendImages | No | Enable when the prompt combines multiple visual elements that need coherent spatial relationships, lighting, or composition. | |
| inputImagePaths | No | Absolute paths to reference images in prompt order. Use a one-element array for one image. Limits: Gemini 14, OpenAI 16, Seedream 10. Omit for text-only generation. | |
| useGoogleSearch | No | Enable when using Gemini and the image requires current or time-sensitive web information. With OpenAI or Seedream, omit this option or set it to false. | |
| useWorldKnowledge | No | Enable when accurate real-world details matter, such as historical figures, landmarks, cultures, or factual settings. | |
| maintainCharacterConsistency | No | Enable when the same character must retain a recognizable appearance across poses or scenes. |