Skip to main content
Glama

workflow_from_image

Extract embedded ComfyUI workflow metadata from a PNG file to reverse-engineer how an image was generated.

Instructions

Extract embedded ComfyUI workflow metadata from a PNG file. ComfyUI stores the full workflow (API format) and prompt data in PNG tEXt chunks. Use this to reverse-engineer how any ComfyUI image was generated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_pathYesAbsolute path to a ComfyUI-generated PNG file
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that data is extracted from PNG tEXt chunks, but does not mention potential failure modes (e.g., non-ComfyUI images, missing chunks) or side effects. The statement is honest but lacks depth for a tool with no annotations.

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

Conciseness5/5

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

The description is two sentences, front-loading the core action ('Extract embedded ComfyUI workflow metadata from a PNG file.') and providing necessary technical detail. Every word serves a purpose with no redundancy.

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

Completeness4/5

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

For a simple extraction tool with one parameter and no output schema, the description covers the what, where, and why. It could mention the return format (workflow in API format) but the current level is sufficient for understanding.

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

Parameters3/5

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

Schema coverage is 100% (one parameter). The parameter description in the schema already states 'Absolute path to a ComfyUI-generated PNG file.' The tool description adds context about tEXt chunks but does not enhance the parameter's meaning beyond what the schema provides.

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 extracts embedded ComfyUI workflow metadata from PNG files, specifying the source (PNG tEXt chunks) and what is extracted (full workflow in API format and prompt data). This distinguishes it from siblings like extract_workflow_dependencies, which focuses on dependencies.

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

Usage Guidelines4/5

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

The description provides clear context: 'Use this to reverse-engineer how any ComfyUI image was generated.' This implies usage when a user has a ComfyUI image and needs to understand its generation. It does not explicitly mention when not to use or alternatives, but the purpose is well-defined.

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/artokun/comfyui-mcp'

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