fetch_outputs
Retrieve output files from a completed ComfyUI job by prompt ID, saving them to a local directory. Optionally get URLs only or embed images inline.
Instructions
Download a completed job's output files into out_dir.
Wraps comfy download <prompt_id> --where local -o <out_dir>.
url_only=True adds --url-only — emits URLs without downloading.
Works for a job that ran on a configured REMOTE too, even though this verb
forwards no --host/--port (not in _TARGET_AWARE_SUBCOMMANDS):
the run that submitted the job wrote a state file on THIS machine keyed by
prompt_id, and against a remote that file records each output as an
absolute URL comfy-cli streams from there. Only a prompt_id this
machine never submitted has no such state file (download_job_not_found).
inline_images=True ALSO returns copied images as inline MCP content
(base64); the on-disk copy is unchanged either way. Returns a list:
comfy-cli's metadata first, then the image files (capped at
_INLINE_IMAGE_MAX_COUNT files / _INLINE_IMAGE_MAX_BYTES aggregate;
on-disk copies are never capped).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_dir | Yes | ||
| url_only | No | ||
| prompt_id | Yes | ||
| inline_images | No |