Skip to main content

comfy-custom-nodes-api-schema

Packaged fallback for ComfyUI V3 and legacy V1 custom-node schema shape.

来源信息

仓库
Comfy-Org/comfy-cli
最近来源活动
2026年10月15日 17:51
检测到的 SKILL.md 语言
英语
星标
1,035
Forks
170

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
comfy-custom-nodes-api-schema
description
Packaged fallback for ComfyUI V3 and legacy V1 custom-node schema shape.
# API/schema fallback V3 uses `io.ComfyNode`, `io.Schema`, `ComfyExtension`, and module-level `comfy_entrypoint`. `define_schema` and `execute` are classmethods; execute parameter names equal input ids; return `io.NodeOutput` in output order. `node_id` is stable workflow identity; `display_name` may change. Useful schema tools include `io.Autogrow`, `io.DynamicCombo`, and `io.MatchType`; previews belong in `io.NodeOutput`, progress uses the runtime execution API, and terminal nodes set `is_output_node`. Keep tensor batch dimensions: IMAGE `[B,H,W,C]`, MASK `[B,H,W]`; do not assume a fixed LATENT shape. V1 uses `INPUT_TYPES`, `RETURN_TYPES`, `FUNCTION`, `CATEGORY`, and `NODE_CLASS_MAPPINGS`. Translate deliberately; do not mix registrations. If a pack ships frontend code, export `WEB_DIRECTORY` and keep saved widget values JSON-like and stable. Preserve old workflow identity during V1-to-V3 migration by registering the `node_replacement`; constructing a replacement descriptor alone does nothing.
在 GitHub 查看