list_available_presets
Retrieve available style presets for AI-powered 2D game asset generation in ComfyUI workflows.
Instructions
List all available style presets for asset generation.
Returns:
JSON object containing all presets with their configurations
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/main.py:99-107 (handler)The @mcp.tool() decorated handler function for list_available_presets. It calls the helper list_presets() and returns the result as formatted JSON string.@mcp.tool() async def list_available_presets() -> str: """List all available style presets for asset generation. Returns: JSON object containing all presets with their configurations """ return json.dumps(list_presets(), indent=2)
- server/presets.py:387-390 (helper)Helper function that converts the PRESETS dictionary into a serializable format for the tool response.def list_presets() -> Dict[str, Dict[str, Any]]: """List all available presets.""" return {name: preset.to_dict() for name, preset in PRESETS.items()}