| name | comfyui |
| description | AI图片生成(文生图、图生图、去背景、放大),需本地 ComfyUI。不用于:截图、网页抓图、非AI图片处理 |
前置条件:ComfyUI 必须在 http://127.0.0.1:8000 运行中。如果报连接错误,提示用户先启动 ComfyUI。
All output files go to the working directory (工作目录). Always use auto_send: true on the shell call.
Text-to-Image
{"command": "python skills/comfyui/scripts/comfyui.py --output-dir '{WORKDIR}' generate --prompt \"description\" --width 1024 --height 1024", "timeout": 120000, "auto_send": true}
Optional args: --steps 9 (default 9), --seed 12345
Remove Background
{"command": "python skills/comfyui/scripts/comfyui.py --output-dir '{WORKDIR}' remove_bg --image path/to/image.png", "timeout": 120000, "auto_send": true}
Upscale (4x)
{"command": "python skills/comfyui/scripts/comfyui.py --output-dir '{WORKDIR}' upscale --image path/to/image.png", "timeout": 120000, "auto_send": true}
Rules
- ALWAYS copy the JSON template above EXACTLY. Do not improvise commands.
- ALWAYS set
"timeout": 120000 — image generation takes 30-120 seconds.
- Do NOT check if ComfyUI is running first. Just run the command.
- Do NOT write your own Python code. Use the script above exactly.