list_official_templates
Retrieve official ComfyUI workflow templates from the Comfy-Org repository, synced and converted to DSL format for workflow management.
Instructions
List official ComfyUI templates.
Returns templates from the official Comfy-Org repository that have been synced and converted to DSL format.
Returns: List of official template metadata
Examples: list_official_templates()
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- comfy_mcp/mcp/server.py:577-597 (handler)The handler function decorated with @mcp.tool, which implements the list_official_templates tool by calling template_manager.search_templates(source='official') to retrieve official template metadata.@mcp.tool def list_official_templates() -> list[dict]: """List official ComfyUI templates. Returns templates from the official Comfy-Org repository that have been synced and converted to DSL format. Returns: List of official template metadata Examples: list_official_templates() """ try: # Get only official templates results = template_manager.search_templates(source="official") return results except Exception as e: raise ToolError(f"Error listing official templates: {e}")
- comfy_mcp/mcp/server.py:577-577 (registration)The @mcp.tool decorator registers the list_official_templates function as an MCP tool.@mcp.tool