get_image_config_info
Retrieve available configuration options for image generation and editing, including aspect ratios and transformation settings.
Instructions
이미지 생성/편집에 사용 가능한 설정 옵션 정보를 반환합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- gemini-image.js:337-348 (handler)The getConfigInfo() function that implements the actual logic for get_image_config_info tool. Returns configuration object with valid aspect ratios, image sizes, models, and documentation link.
export function getConfigInfo() { return { aspectRatios: VALID_ASPECT_RATIOS, imageSizes: VALID_IMAGE_SIZES, models: { default: DEFAULT_MODEL, fallback: FALLBACK_MODEL, notes: "4K는 pro 모델에서만 지원됩니다.", }, docs: "https://ai.google.dev/gemini-api/docs/image-generation?hl=ko", }; } - server.js:279-293 (registration)Registration of the get_image_config_info MCP tool. The tool has no input parameters and calls getConfigInfo() to return configuration information as JSON.
server.tool( "get_image_config_info", "이미지 생성/편집에 사용 가능한 설정 옵션 정보를 반환합니다", async () => { const info = getConfigInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; } ); - gemini-image.js:9-21 (schema)Schema definitions for valid configuration options - VALID_ASPECT_RATIOS and VALID_IMAGE_SIZES arrays that are returned by getConfigInfo().
const VALID_ASPECT_RATIOS = [ "1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9", ]; const VALID_IMAGE_SIZES = ["1K", "2K", "4K"]; - gemini-image.js:6-7 (schema)Default and fallback model constants (DEFAULT_MODEL and FALLBACK_MODEL) used in the configuration info returned by getConfigInfo().
const DEFAULT_MODEL = "gemini-3-pro-image-preview"; const FALLBACK_MODEL = "gemini-2.5-flash-image";