download
Monitor an active model download: view status and progress, wait for completion, or cancel to stop and remove the partial file.
Instructions
Track a transfer already started by download_model; does NOT start one.
Wraps comfy model download-status/download-cancel. action:
"status" (default) -> status, completed_bytes/total_bytes/percent, elapsed_seconds, dest, error. comfy-cli writes to
destwhile transferring, so a present file proves nothing until status reads "completed" -- the only proof a model is usable."wait" -> poll until terminal (default 25.0s, ceiling 3600s); returns the final payload, or
{"timed_out": True, "download_id": ..., "status": <last>}on expiry -- a TIMEOUT, not a failure."cancel" -> stop a running transfer and its partial file.
download_id required for every action; timeout_seconds only for
"wait" -- rejected elsewhere. Too-old comfy-cli: {"error", "unsupported": True} instead of raising.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | status | |
| download_id | No | ||
| timeout_seconds | No |