generate_workflow_name
Generate creative workflow names for saving ComfyUI workflows, producing random slug-style names like 'cosmic-penguin' or 'mighty-purple-narwhal' to help organize your automation projects.
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 coolname.generate_slug(words), with input validation clamping words to 2-4. Includes inline schema via pydantic Field and docstring description. Decorated with @mcp.tool() for registration.@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)Within register_all_tools, calls register_workflow_tools(mcp) which registers the generate_workflow_name tool (via its @mcp.tool() decorator in workflow.py).register_workflow_tools(mcp)