使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/comfy-org/comfy-cli --skill comfy-custom-nodes-api-schema开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
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.




