generate_image
Create and strictly edit publication-quality scientific figures—diagrams, charts, and maps—from structured prompts, with optional QA validation for labels, legends, and readability.
Instructions
Generate image with specified prompt and optional parameters
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 prompt for image generation (English recommended for optimal structured prompt enhancement) | |
| editMode | No | Edit mode for image modification. Use "strict" to preserve everything exactly except the specific change requested (recommended for scientific figures). Use "creative" for artistic interpretation. Default is "creative". | |
| fileName | No | Optional file name for the generated image (if not specified, generates an auto-named file in IMAGE_OUTPUT_DIR) | |
| imageSize | No | Image resolution for high-quality output. Specify "2K" or "4K" when you need higher resolution images with better text rendering and fine details. Leave unspecified for standard quality. | |
| validateQa | No | Run QA validation on this generation. Evaluates the figure against publication-quality criteria (spelling, labels, legend, contrast). Requires figureStyle to be set. | |
| aspectRatio | No | Aspect ratio for the generated image | |
| blendImages | No | Enable multi-image blending for combining multiple visual elements naturally. Use when prompt mentions multiple subjects or composite scenes | |
| figureStyle | No | Scientific figure style for publication-ready illustrations (Nature, Science quality). Use "scientific_diagram" for process/concept diagrams, "scientific_map" for maps with scale/legend/north arrow, "scientific_chart" for data visualizations with axes and labels. | |
| inputImagePath | No | Optional absolute path to source image for image-to-image generation. Use when generating variations, style transfers, or similar images based on an existing image (must be an absolute path) | |
| useGoogleSearch | No | Enable Google Search grounding to access real-time web information for factually accurate image generation. Use when prompt requires current or time-sensitive data that may have changed since the model's knowledge cutoff. Leave disabled for creative, fictional, historical, or timeless content. | |
| useWorldKnowledge | No | Use real-world knowledge for accurate context. Enable for historical figures, landmarks, or factual scenarios | |
| maintainCharacterConsistency | No | Maintain character appearance consistency. Enable when generating same character in different poses/scenes |