Skip to main content
Glama

generate_image_from_image

Transform an input image by applying a text prompt using ComfyUI, with adjustable denoising strength and optional seed for reproducible results.

Instructions

Generates an image using ComfyUI based on an input image (URL, local path, or bytes), prompt, and optional parameters.

Args:
    prompt: The positive text prompt (It must be in English).
    workflow_name: The name of the I2I workflow file (without .json) to use (default: 'I2Image_bizyair_flux').
    image_path_or_url: The URL or local file path or image data as bytes of the input image.
    denoise: Denoising strength (0.0 to 1.0). Controls how much the original image influences the result. to use (default: '1.0')
    seed: Optional random seed for reproducibility.
Returns:
    A URL to view the generated image or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
workflow_nameYes
image_path_or_urlYesURL, local path, or image data as bytes.
denoiseNo
seedNo
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description does not disclose behavioral traits like whether the tool is destructive, requires authentication, or handles errors. It only mentions returns a URL or error message, lacking deeper transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with an Args section, but could be more concise. Every sentence conveys necessary information, though the inclusion of default values could be streamlined.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 5 parameters, 3 required, no output schema, and no annotations, the description covers the parameters and return value adequately. However, it lacks details on error handling, constraints, or execution behavior, making it slightly incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 20% schema description coverage, the description compensates by explaining parameter details: prompt must be in English, workflow_name default and file extension, denoise range and effect, and seed optional. This adds value beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool generates an image using ComfyUI based on an input image, prompt, and optional parameters. This distinguishes it from the sibling tool 'generate_image_from_text' which presumably uses a text-only input.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description implies usage when an input image is available, but does not explicitly state when to use it vs. the sibling tool or any conditions/alternatives. No guidance on when not to use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zjf2671/hh-mcp-comfyui'

If you have feedback or need assistance with the MCP directory API, please join our Discord server