list_available_presets
Retrieve all style presets for generating 2D game assets like sprites and characters using AI workflows in ComfyMCP Studio.
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:91-98 (handler)The primary handler function for the 'list_available_presets' tool. It is registered via the @mcp.tool() decorator and returns a JSON string of all available presets by calling the list_presets() helper.@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-389 (helper)Helper function that constructs and returns a dictionary containing all preset configurations, used by the tool handler.def list_presets() -> Dict[str, Dict[str, Any]]: """List all available presets.""" return {name: preset.to_dict() for name, preset in PRESETS.items()}
- server/main.py:91-91 (registration)The @mcp.tool() decorator registers the list_available_presets function as an MCP tool.@mcp.tool()