ideogram-mcp-server
Version:
A FastMCP server for the Ideogram AI API.
43 lines (42 loc) • 1.31 kB
TypeScript
/**
* Download Tool
* Image download tool implementation using FastMCP framework
*/
import { z } from 'zod';
import { FileManager } from '../utils/file-manager.js';
declare const downloadSchema: z.ZodObject<{
urls: z.ZodArray<z.ZodString, "many">;
output_dir: z.ZodString;
}, "strip", z.ZodTypeAny, {
urls: string[];
output_dir: string;
}, {
urls: string[];
output_dir: string;
}>;
export declare function createDownloadTool(fileManager: FileManager): {
name: string;
description: string;
parameters: {
readonly "~standard": any;
readonly type: "object";
readonly properties: {
readonly urls: {
readonly type: "array";
readonly items: {
readonly type: "string";
readonly format: "uri";
};
readonly minItems: 1;
readonly description: "Array of image URLs to download";
};
readonly output_dir: {
readonly type: "string";
readonly description: "Directory path where images will be saved";
};
};
readonly required: readonly ["urls", "output_dir"];
};
execute: (args: unknown) => Promise<string>;
};
export { downloadSchema };