UNPKG

ideogram-mcp-server

Version:
73 lines (72 loc) 2.76 kB
/** * Replace Background Tool * Background replacement tool implementation using FastMCP framework */ import { z } from 'zod'; import { IdeogramApiClient } from '../utils/api-client.js'; import { FileManager } from '../utils/file-manager.js'; declare const replaceBackgroundSchema: z.ZodObject<{ image_file: z.ZodString; prompt: z.ZodString; model: z.ZodOptional<z.ZodEnum<["V_1", "V_2", "V_2_TURBO"]>>; magic_prompt_option: z.ZodOptional<z.ZodEnum<["AUTO", "ON", "OFF"]>>; seed: z.ZodOptional<z.ZodNumber>; num_images: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { prompt: string; image_file: string; model?: "V_1" | "V_2" | "V_2_TURBO" | undefined; magic_prompt_option?: "AUTO" | "ON" | "OFF" | undefined; seed?: number | undefined; num_images?: number | undefined; }, { prompt: string; image_file: string; model?: "V_1" | "V_2" | "V_2_TURBO" | undefined; magic_prompt_option?: "AUTO" | "ON" | "OFF" | undefined; seed?: number | undefined; num_images?: number | undefined; }>; export declare function createReplaceBackgroundTool(apiClient: IdeogramApiClient, fileManager: FileManager): { name: string; description: string; parameters: { readonly "~standard": any; readonly type: "object"; readonly properties: { readonly image_file: { readonly type: "string"; readonly description: "Path to the image file to process"; }; readonly prompt: { readonly type: "string"; readonly description: "Description of the new background scene"; }; readonly model: { readonly type: "string"; readonly enum: readonly ["V_1", "V_2", "V_2_TURBO"]; readonly description: "Model version to use"; }; readonly magic_prompt_option: { readonly type: "string"; readonly enum: readonly ["AUTO", "ON", "OFF"]; readonly description: "Magic prompt enhancement"; }; readonly seed: { readonly type: "number"; readonly minimum: 0; readonly maximum: 2147483647; readonly description: "Random seed for reproducibility"; }; readonly num_images: { readonly type: "number"; readonly minimum: 1; readonly maximum: 8; readonly description: "Number of images to generate"; }; }; readonly required: readonly ["image_file", "prompt"]; }; execute: (args: unknown) => Promise<string>; }; export { replaceBackgroundSchema };