← 返回
内容创作 中文

OpenClaw ComfyUI

Connect and control ComfyUI API efficiently using template mapping and auto-asset management for image generation and editing tasks.
使用模板映射和自动资产管理,高效连接和控制 ComfyUI API,实现图像生成与编辑任务。
salmonrk
内容创作 clawhub v1.0.4 1 版本 99330.5 Key: 无需
★ 12
Stars
📥 3,469
下载
💾 224
安装
1
版本
#latest

概述

ComfyUI-OpenClaw Skill 🎨✨

A professional, token-saving agent skill for connecting and controlling ComfyUI via API. Designed for high efficiency, automatic asset handling, and seamless integration with OpenClaw.

🏗️ Skill Structure

  • Host Address: 192.168.1.38:8190 (Configured in TOOLS.md)
  • Workflow Directory: skills/comfyui/workflows/ (Self-contained within the skill folder)
  • Output Directory: outputs/comfy/ (Relative to workspace root)
  • Core Script: skills/comfyui/comfy_client.py (Handles prompt injection, image uploads, and result polling)

🛠️ Tools (CLI)

Invoke via the exec command:

python3 skills/comfyui/comfy_client.py "" [input_image_path/orientation] [orientation]

Parameters:

  • template_id:
  1. gen_z: Text-to-Image (uses image_z_image_turbo.json)
  2. qwen_edit: Image-to-Image / Editing (uses qwen_image_edit_2511.json) - Supports automatic image upload.
    • prompt: The description of the image to generate or edits to perform.
    • input_image_path: (Optional) Local path for image-to-image tasks.
    • orientation: (Optional) Set to portrait (720x1280) or landscape (1280x720). Defaults to portrait.

💡 How to Add New Workflows

You can expand this skill easily:

  1. Place your new API-formatted JSON workflow in skills/comfyui/workflows/.
  2. Update the WORKFLOW_MAP dictionary in skills/comfyui/comfy_client.py with a new ID and the file path.
  3. (Optional) If the workflow uses unique node types, adjust the injection logic in the script's main() function.

🚀 Token-Saving Strategy

  • Template Mapping: Never send full workflow JSONs in the chat. Refer to them by template_id.
  • Vision-Saving Strategy: To minimize token usage, the agent should prioritize using the file path from metadata instead of analyzing image content via vision capabilities unless explicitly asked to describe or analyze the image.
  • Direct Delivery: Deliver images directly to users via messaging plugins (e.g., Telegram) or local file openers (open) to avoid bloating the LLM's context window with base64 data.

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-03-28 19:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,131
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,255
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 141 📥 41,016