comfyui-remote-api-orchestrator
Installation
SKILL.md
ComfyUI Remote API Orchestration Protocol
Use this protocol when you need to execute a workflow on a remote ComfyUI server (e.g., SPARK or Dual-3090) rather than locally.
1. Discovery Phase
Before submitting, verify the target environment and locate the workflow.
- Find Workflow: Use
findvia terminal to locate.jsonfiles if the path is unknown. - Verify Connectivity: Always run a connectivity check (
curl -s --max-time 5 http://<IP>:<PORT>/object_info) before attempting submission.
2. Injection Phase (Python)
Do not rely on shell commands for injection; use Python to ensure JSON integrity.
- Load:
json.load(f)the workflow. - Locate Nodes: Iterate through
workflow.items()to find target nodes byclass_type(e.g.,CLIPTextEncode,KSampler,SaveImage). - Modify: Inject values into the
inputsdictionary of the identified node ID. - Payload Wrap: Wrap the modified dict in:
{"prompt": workflow, "client_id": "<uuid>"}.
3. Execution & Monitoring Phase
Submit via curl and implement a robust polling loop.