UNPKG

@ldavis9000aws/swarmui-generator

Version:

A Model Context Protocol server for SwarmUI image generation with TypeScript

66 lines (65 loc) 1.48 kB
/** * List Models MCP Tool * * This file contains the MCP tool definition for listing available stable diffusion models. */ import { SwarmUIClient, ListModelsOptions } from '../client/swarmui-client.js'; /** * Input schema for the list_models tool. */ export declare const listModelsSchema: { description: string; type: string; properties: { path: { type: string; description: string; }; depth: { type: string; description: string; }; subtype: { type: string; description: string; }; sortBy: { type: string; description: string; }; sortReverse: { type: string; description: string; }; allowRemote: { type: string; description: string; }; }; required: never[]; }; /** * Handler for the list_models tool */ export declare function listModelsHandler(params: ListModelsOptions, swarmui: SwarmUIClient): Promise<{ content: { type: "text"; text: string; }[]; _meta: { modelCount: number; folderCount: number; error?: undefined; }; isError?: undefined; } | { content: { type: "text"; text: string; }[]; isError: boolean; _meta: { error: string; modelCount?: undefined; folderCount?: undefined; }; }>;