Skip to main content
Glama

workflow_from_image

Extract the full ComfyUI workflow and prompt data embedded in 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 explains the data source (PNG tEXt chunks) and the extracted content (workflow and prompt data). However, it doesn't mention the return format or error conditions (e.g., missing metadata).

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?

Two tight sentences: the first functional, the second explanatory. No filler or redundancy. Every word earns its place.

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?

The description is sufficient for a simple extraction tool with one parameter, though it lacks return value details (e.g., format of the extracted workflow). Given no output schema, a note on the return type would improve completeness.

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?

With 100% schema description coverage and a single parameter, the description adds little beyond the schema ('Absolute path to a ComfyUI-generated PNG file'). The schema already clearly defines the parameter, meeting the baseline.

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 action ('Extract embedded ComfyUI workflow metadata') and the specific resource ('from a PNG file'). It distinguishes from siblings like 'analyze_workflow' and 'extract_workflow_dependencies' by focusing on metadata extraction from images.

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 explicitly tells when to use the tool: to reverse-engineer how a ComfyUI image was generated. While it doesn't list alternatives or when-not-to-use scenarios, the context of sibling tools implies other tools for non-image workflows.

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