generate_workflow_name
Create random, humorous workflow names for saving new workflows in ComfyUI, generating slug-style names like 'cosmic-penguin' or 'mighty-purple-narwhal' with customizable word count.
Instructions
Generate a random funny workflow name.
Args:
words: Number of words in the name (2-4, default: 2)
Returns a slug like 'cosmic-penguin' or 'mighty-purple-narwhal'.
Use this when saving new workflows for creative naming.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | No | Number of words (2-4) |
Implementation Reference
- The handler function for the 'generate_workflow_name' tool. It generates a random funny name using the 'coolname.generate_slug' function with the specified number of words (clamped between 2-4), optionally logging via context.@mcp.tool() def generate_workflow_name( words: int = Field(default=2, description="Number of words (2-4)"), ctx: Context = None, ) -> str: """Generate a random funny workflow name. Args: words: Number of words in the name (2-4, default: 2) Returns a slug like 'cosmic-penguin' or 'mighty-purple-narwhal'. Use this when saving new workflows for creative naming. """ if ctx: ctx.info(f"Generating {words}-word workflow name") words = max(2, min(4, words)) # Clamp to valid range return generate_slug(words)
- src/comfy_mcp_server/tools/__init__.py:27-27 (registration)Call to register_workflow_tools(mcp) within register_all_tools, which registers the generate_workflow_name tool among others.register_workflow_tools(mcp)