### Copy Example Configuration Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/getting-started.md After cloning the project, copy the example configuration file to create your active configuration. ```shell cp config.example.json config.json ``` -------------------------------- ### Install Workflow Dependencies Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md If dependencies are missing, this command can install them. It requires a dependency ID and a list of repository URLs. ```bash comfyui-skill --json deps install --repos '["https://github.com/repo1"]' ``` -------------------------------- ### Run ComfyUI Skills Web UI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/getting-started.md Start the local web interface for visual workflow management. This is optional and not required for agent usage. The script handles environment setup and server startup. ```shell # macOS / Linux ./ui/run_ui.sh # Windows ui\run_ui.bat ``` -------------------------------- ### Verify ComfyUI Skill Setup Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Check the status of the ComfyUI Skill server and list available skills. These commands verify that the installation and setup are successful. ```bash comfyui-skill server status comfyui-skill list ``` -------------------------------- ### Manual CLI Workflow Import Example Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Example of manually importing a workflow JSON using an absolute path. This method ensures clarity and simplifies storage. ```bash comfyui-skill workflow import /Users/yourname/Downloads/my-workflow.json ``` -------------------------------- ### Install ComfyUI Skills CLI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/getting-started.md Install the ComfyUI Skills command-line interface tool using pipx or pip. If already installed, use the upgrade commands. ```shell pipx install comfyui-skill-cli ``` ```shell pip install comfyui-skill-cli ``` ```shell # If installed with pipx pipx upgrade comfyui-skill-cli # If installed with pip python3 -m pip install -U comfyui-skill-cli ``` -------------------------------- ### Create Local Configuration Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Copy the example configuration file to create your local configuration. This file is essential for setting up the environment. ```bash cp config.example.json config.json ``` -------------------------------- ### Install and Execute ComfyUI Skills CLI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/index.md Commands to install the CLI tool and perform basic operations like checking server status, listing workflows, and executing a workflow with arguments. ```bash pip install comfyui-skill-cli comfyui-skill server status comfyui-skill list comfyui-skill run local/txt2img --args '{"prompt": "a white cat"}' ``` -------------------------------- ### Clone Project for Codex Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Clone the repository into the specified Codex skills directory. This is the setup procedure for Codex users. ```bash cd ~/.codex/skills git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill cd comfyui-skill ``` -------------------------------- ### Install ComfyUI Skill CLI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Install the ComfyUI Skill CLI using pip. This is a prerequisite for all commands. ```bash pip install -U comfyui-skill-cli ``` -------------------------------- ### Install ComfyUI Skill CLI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Install the ComfyUI Skill CLI using pipx. This command installs the command-line interface for managing ComfyUI skills. ```bash pipx install comfyui-skill-cli ``` -------------------------------- ### Launch Web UI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Use these scripts to launch the local web interface for visual configuration and testing. The scripts handle virtual environment creation and dependency installation. ```bash ./ui/run_ui.sh ``` ```bat ui\run_ui.bat ``` -------------------------------- ### Submit ComfyUI Workflow with Minimal Prompt Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md A minimal example for submitting a workflow, demonstrating the essential 'seed', 'steps', and 'class_type' for a KSampler node. Requires a 'client_id'. ```json { "prompt": { "3": { "inputs": { "seed": 1, "steps": 20 }, "class_type": "KSampler" } }, "client_id": "openclaw-skill" } ``` -------------------------------- ### Import and Run a Workflow Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/getting-started.md Import a workflow JSON file, check and install its dependencies, and then run the workflow with specified arguments. The CLI supports absolute paths for workflow JSON files. ```shell # Import a workflow JSON (auto-detects format, generates schema) comfyui-skill workflow import /absolute/path/to/my-workflow.json # Check and install dependencies comfyui-skill deps check local/my-workflow comfyui-skill deps install local/my-workflow --all # Run it comfyui-skill run local/my-workflow --args '{"prompt": "a white cat"}' ``` -------------------------------- ### Conventional Commits Examples Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/CONTRIBUTING.md Examples of commit messages following the Conventional Commits specification. Use these to clearly indicate the type and scope of changes. ```bash feat: add cancel command for interrupting running jobs ``` ```bash fix: handle timeout in dependency check ``` ```bash docs: update SKILL.md quick decision section ``` ```bash chore: update .gitignore patterns ``` -------------------------------- ### GET /view Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Download or inspect an output image. ```APIDOC ## GET /view ### Description Download or inspect an output image by filename, subfolder, and type. ### Method GET ### Endpoint /view ### Parameters #### Query Parameters - **filename** (string) - Required - Name of the file - **subfolder** (string) - Optional - Subfolder path - **type** (string) - Optional - Type of asset ``` -------------------------------- ### List Available Workflows Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Use this command to get a JSON array of all enabled workflows and their parameters. Required parameters will be prompted if not provided. ```bash comfyui-skill --json list ``` -------------------------------- ### Inspect a ComfyUI Workflow Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Use this command to get information about a local workflow. Ensure the workflow path is correct. ```bash comfyui-skill info local/txt2img ``` -------------------------------- ### Verify ComfyUI Skills Setup Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/getting-started.md Verify that the CLI can connect to your ComfyUI server and list available workflows. The CLI relies on config.json and the data/ directory. ```shell # Check server connectivity comfyui-skill server status # List available workflows comfyui-skill list ``` -------------------------------- ### Upgrade ComfyUI Skill CLI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Upgrade the ComfyUI Skill CLI if it is already installed. Use the appropriate command based on your installation method (pipx or pip). ```bash # If you installed it with pipx pipx upgrade comfyui-skill-cli ``` ```bash # If you installed it with pip python3 -m pip install -U comfyui-skill-cli ``` -------------------------------- ### Get ComfyUI Server Statistics Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Retrieve statistics for all available ComfyUI servers, useful for resource management. ```bash comfyui-skill --json server stats --all ``` -------------------------------- ### Clone Project for Claude Code Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Clone the repository into the specified Claude Code skills directory. This setup is for users of the Claude Code environment. ```bash cd ~/.claude/skills git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill cd comfyui-skill ``` -------------------------------- ### GET /history/{prompt_id} Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Read the history entry for one run to poll for completion. ```APIDOC ## GET /history/{prompt_id} ### Description Read the history entry for one run. This is how the client polls for completion. ### Method GET ### Endpoint /history/{prompt_id} ### Parameters #### Path Parameters - **prompt_id** (string) - Required - The ID of the prompt to retrieve history for ``` -------------------------------- ### Submit ComfyUI Workflow using cURL Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Example using cURL to POST a JSON payload to the `/prompt` endpoint. Sets the 'Content-Type' header to 'application/json'. ```bash curl -X POST http://127.0.0.1:8188/prompt \ -H 'Content-Type: application/json' \ -d '{ "prompt": { "3": { "inputs": { "seed": 1, "steps": 20 }, "class_type": "KSampler" } }, "client_id": "openclaw-skill" }' ``` -------------------------------- ### Check ComfyUI Server Status Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Verify if the ComfyUI server is running. If it's offline, the user needs to start the ComfyUI application. ```bash comfyui-skill --json server status ``` -------------------------------- ### Clone Project for Hermes Agent Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Clone the repository into the Hermes Agent creative skills directory. Alternatively, install via the Hermes CLI if the PR is merged. ```bash cd ~/.hermes/skills/creative git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill-openclaw cd comfyui-skill-openclaw ``` ```bash hermes skills install comfyui-skill-openclaw ``` -------------------------------- ### Import and Run First Workflow Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Import a ComfyUI workflow and execute it with specified arguments. This demonstrates the basic usage of the CLI for workflow management. ```bash comfyui-skill workflow import /absolute/path/to/my-workflow.json comfyui-skill deps check local/my-workflow comfyui-skill run local/my-workflow --args '{"prompt": "a white cat"}' ``` -------------------------------- ### Import ComfyUI Workflow Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Import a ComfyUI workflow into the system. Ensure you are in the project root directory. ```bash comfyui-skill --json workflow import ``` -------------------------------- ### Open ComfyUI Management UI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Launch the ComfyUI management user interface using a Python script. ```bash python3 ./ui/open_ui.py ``` -------------------------------- ### Export and Import Configuration Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Back up your ComfyUI Skills CLI configuration to a JSON file, or import a configuration. The `--dry-run` option allows you to preview changes before applying them. ```bash comfyui-skill config export --output ./backup.json ``` ```bash comfyui-skill config import ./backup.json --dry-run ``` ```bash comfyui-skill config import ./backup.json ``` -------------------------------- ### Clone Project for OpenClaw Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Clone the repository into the specified OpenClaw workspace directory. This is the initial step for setting up the project. ```bash cd ~/.openclaw/workspace/skills git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill-openclaw cd comfyui-skill-openclaw ``` -------------------------------- ### POST /prompt Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Submit a workflow to the execution queue. ```APIDOC ## POST /prompt ### Description Submit a workflow to the execution queue. Returns prompt_id on success or validation errors on failure. ### Method POST ### Endpoint /prompt ### Request Body - **prompt** (object) - Required - The workflow definition - **client_id** (string) - Optional - Client identifier ``` -------------------------------- ### Manage ComfyUI Servers Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md List available servers, or add a new remote server with a specified ID and URL. Ensure the URL is accessible. ```bash comfyui-skill server list ``` ```bash comfyui-skill server add --id remote --url http://10.0.0.1:8188 ``` -------------------------------- ### Run Unit Tests Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/CONTRIBUTING.md Execute all unit tests for the project. Ensure all tests pass before submitting a Pull Request. ```bash python -m unittest discover -s tests -p "test_*.py" ``` -------------------------------- ### POST /api/servers/{server_id}/workflows/import/local Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/references/workflow-import.md Imports local workflow JSON files into the system. ```APIDOC ## POST /api/servers/{server_id}/workflows/import/local ### Description Processes local JSON workflow files, applying normalization and schema extraction. ### Method POST ### Endpoint /api/servers/{server_id}/workflows/import/local ### Parameters #### Path Parameters - **server_id** (string) - Required - The unique identifier of the target server. #### Request Body - **files** (array) - Required - A list of objects containing file_name and content (raw JSON string). ``` -------------------------------- ### Check Dependencies Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Run this command to check for missing nodes or models required by a workflow. It helps identify and manage dependencies for your ComfyUI skills. ```bash comfyui-skill deps check ``` -------------------------------- ### Configure ComfyUI Server in config.json Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Defines the ComfyUI server connection details, including URL and output directory. Ensure the server is enabled. ```json { "servers": [ { "id": "local", "name": "Local", "url": "http://127.0.0.1:8188", "enabled": true, "output_dir": "./outputs" } ], "default_server": "local" } ``` -------------------------------- ### POST /api/servers/{server_id}/workflows/import/comfyui Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/references/workflow-import.md Imports all saved workflows from a configured ComfyUI server instance. ```APIDOC ## POST /api/servers/{server_id}/workflows/import/comfyui ### Description Reads saved workflow JSON files from a ComfyUI server's /userdata directory, converts editor formats to API formats, and persists them. ### Method POST ### Endpoint /api/servers/{server_id}/workflows/import/comfyui ### Parameters #### Path Parameters - **server_id** (string) - Required - The unique identifier of the target ComfyUI server. ``` -------------------------------- ### Add Multiple ComfyUI Servers Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Configure and manage multiple ComfyUI instances by adding them with unique IDs and URLs. This allows for routing workflows based on server capabilities or location. ```bash comfyui-skill server add --id local --url http://127.0.0.1:8188 ``` ```bash comfyui-skill server add --id remote-a100 --url http://10.0.0.20:8188 ``` ```bash comfyui-skill server list ``` -------------------------------- ### Submit ComfyUI Workflow Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Use this route to submit a new workflow to the ComfyUI server. Ensure the 'prompt' object is correctly structured with node inputs and class types. The 'client_id' is optional. ```json { "prompt": { "3": { "inputs": { "seed": 1, "steps": 20, "cfg": 8, "sampler_name": "euler", "scheduler": "normal", "denoise": 1, "model": ["4", 0], "positive": ["6", 0], "negative": ["7", 0], "latent_image": ["5", 0] }, "class_type": "KSampler" } }, "client_id": "optional-client-id" } ``` -------------------------------- ### Check Workflow Dependencies Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Always run this command before the first execution of a workflow to check for missing nodes and models. It requires the server and workflow IDs. ```bash comfyui-skill --json deps check / ``` -------------------------------- ### List Available ComfyUI Nodes Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Display a list of all available nodes within the ComfyUI system. ```bash comfyui-skill --json nodes list ``` -------------------------------- ### Import all saved workflows from ComfyUI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/references/workflow-import.md Use this route to fetch and register all saved workflows from a configured ComfyUI server. Requires the server to be reachable for editor-format conversion. ```http POST /api/servers/{server_id}/workflows/import/comfyui ``` -------------------------------- ### Import Workflow using JSON Path Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Use this command to import a new workflow into ComfyUI Skills. It supports both API and editor formats and automatically generates a schema.json. Ensure dependencies are checked after import. ```bash comfyui-skill --json workflow import ``` -------------------------------- ### Clone ComfyUI Skills Project Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/getting-started.md Clone the project repository to your local workspace. Choose the appropriate path based on your AI agent platform (OpenClaw, Claude Code, or Codex). ```shell # For OpenClaw cd ~/.openclaw/workspace/skills git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill-openclaw cd comfyui-skill-openclaw # For Claude Code cd ~/.claude/skills git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill cd comfyui-skill # For Codex cd ~/.codex/skills git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill cd comfyui-skill ``` -------------------------------- ### Import local JSON files Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/references/workflow-import.md Use this route to register workflows from local JSON content. Processes files independently, allowing for partial success. ```http POST /api/servers/{server_id}/workflows/import/local Content-Type: application/json { "files": [ { "file_name": "my-workflow.json", "content": "{...raw json string...}" } ] } ``` -------------------------------- ### ComfyUI Skills Data Directory Structure Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Illustrates the standard directory layout for storing normalized workflows and schemas after CLI import. This structure is used by both the CLI and the Web UI. ```bash data/// workflow.json schema.json history/ ``` -------------------------------- ### Workflow and Schema File Structure Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Organizes ComfyUI workflow and parameter schema files within the specified directory structure. The workflow file should be in ComfyUI API export format. ```text data/local/my-workflow/ workflow.json # ComfyUI API-format export schema.json # Parameter mapping ``` -------------------------------- ### Submit A Workflow Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Submits a workflow to the ComfyUI server for execution. Expects a JSON payload containing the prompt definition and an optional client ID. Returns a prompt ID upon successful queuing. ```APIDOC ## POST /prompt ### Description Submits a workflow to the ComfyUI server for execution. Expects a JSON payload containing the prompt definition and an optional client ID. Returns a prompt ID upon successful queuing. ### Method POST ### Endpoint /prompt ### Parameters #### Request Body - **prompt** (object) - Required - The workflow definition. - **client_id** (string) - Optional - An identifier for the client. ### Request Example ```json { "prompt": { "3": { "inputs": { "seed": 1, "steps": 20, "cfg": 8, "sampler_name": "euler", "scheduler": "normal", "denoise": 1, "model": ["4", 0], "positive": ["6", 0], "negative": ["7", 0], }, "class_type": "KSampler" } }, "client_id": "optional-client-id" } ``` ### Response #### Success Response (200) - **prompt_id** (string) - The ID of the submitted prompt. - **number** (integer) - The position of the prompt in the queue. #### Response Example ```json { "prompt_id": "some-prompt-id", "number": 1 } ``` ``` -------------------------------- ### Download ComfyUI Output Image Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Retrieve a generated image from the ComfyUI server. Specify the 'filename', 'subfolder', and 'type' as query parameters. The output is saved to 'result.png'. ```bash curl "http://127.0.0.1:8188/view?filename=ComfyUI_00001_.png&subfolder=&type=output" \ --output result.png ``` -------------------------------- ### Download An Output Image Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Downloads a generated image from the ComfyUI server. Requires filename, subfolder, and type as query parameters. ```APIDOC ## GET /view ### Description Downloads a generated image from the ComfyUI server. Requires filename, subfolder, and type as query parameters. ### Method GET ### Endpoint /view ### Parameters #### Query Parameters - **filename** (string) - Required - The name of the file to download. - **subfolder** (string) - Optional - The subfolder where the file is located. - **type** (string) - Required - The type of the file (e.g., 'output'). ### Request Example ```bash curl "http://127.0.0.1:8188/view?filename=ComfyUI_00001_.png&subfolder=&type=output" --output result.png ``` ``` -------------------------------- ### Upload Image for ComfyUI Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Upload an image to be used in a ComfyUI workflow. This is often a precursor to execution. ```bash comfyui-skill --json upload ``` -------------------------------- ### Upload Mask for ComfyUI Inpainting Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Upload a mask image for inpainting tasks in ComfyUI. Use the --mask flag to specify it as a mask. ```bash comfyui-skill --json upload --mask ``` -------------------------------- ### Submit Workflow for Interactive Execution Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Submit a workflow for execution in interactive mode. This command returns a submission status and a prompt ID for polling. ```bash comfyui-skill --json submit --args '{"prompt": "..."}' ``` -------------------------------- ### Receive Live Status Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Establishes a WebSocket connection to receive real-time status updates from the ComfyUI server, including execution progress and completion events. ```APIDOC ## WS /ws ### Description Establishes a WebSocket connection to receive real-time status updates from the ComfyUI server, including execution progress and completion events. ### Method WS ### Endpoint /ws ### Description Open a WebSocket connection to `/ws` to receive JSON messages such as `status`, `execution_start`, `executing`, `progress`, and `executed`. ``` -------------------------------- ### Define Workflow Parameters in schema.json Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Maps user-friendly parameters to specific nodes and fields within a ComfyUI workflow. Specifies parameter type, requirements, and descriptions. ```json { "description": "My workflow", "enabled": true, "parameters": { "prompt": { "node_id": 10, "field": "prompt", "required": true, "type": "string", "description": "Prompt text" } } } ``` -------------------------------- ### Submit a Workflow Asynchronously Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/README.md Submit a workflow for execution without waiting for completion. You can provide arguments in JSON format. Use the status command to check the progress. ```bash comfyui-skill submit local/txt2img --args '{"prompt": "a white cat"}' ``` ```bash comfyui-skill status ``` -------------------------------- ### Poll ComfyUI for Prompt Completion Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Use this route to check the status and retrieve outputs for a previously submitted prompt. Replace `` with the ID returned after submitting a prompt. ```bash curl http://127.0.0.1:8188/history/ ``` -------------------------------- ### List ComfyUI History Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md View the history of executed ComfyUI workflows. Requires the job ID. ```bash comfyui-skill --json history list ``` -------------------------------- ### Execute Workflow in Non-Interactive Mode Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Run a workflow in a single, blocking command. This is suitable for scripts or CI environments and returns the final status. ```bash comfyui-skill --json run --args '{"prompt": "..."}' ``` -------------------------------- ### List Failed ComfyUI Jobs Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Check the status of ComfyUI jobs and filter to show only those that have failed. ```bash comfyui-skill --json jobs list --status failed ``` -------------------------------- ### Validate ComfyUI Workflow Execution Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Perform a dry run of a ComfyUI workflow execution without actually running it. Useful for validation. ```bash comfyui-skill --json run --validate ``` -------------------------------- ### Poll For Completion Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/docs/comfyui-native-routes.md Retrieves the execution history for a given prompt ID. Used to check the status and results of a previously submitted workflow. ```APIDOC ## GET /history/{prompt_id} ### Description Retrieves the execution history for a given prompt ID. Used to check the status and results of a previously submitted workflow. ### Method GET ### Endpoint /history/{prompt_id} ### Parameters #### Path Parameters - **prompt_id** (string) - Required - The ID of the prompt to query. ### Response #### Success Response (200) - **history** (object) - A history object keyed by prompt ID, containing output details like filename, subfolder, and type. #### Response Example ```json { "some-prompt-id": { "prompt": { ... }, "outputs": { "1": [ { "filename": "ComfyUI_00001_.png", "subfolder": "", "type": "output" } ] }, "..." } } ``` ``` -------------------------------- ### Poll Workflow Status Source: https://github.com/huangyuchuh/comfyui_skills_openclaw/blob/main/SKILL.md Poll the status of a submitted workflow using its prompt ID. This is part of the interactive execution flow and should be called repeatedly. ```bash comfyui-skill --json status ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.