download_output
Downloads a single ComfyUI output file to a local path and optionally converts it to PNG, JPEG, or WebP.
Instructions
Download a single output file to a local path. Use list_outputs to get file info. Use output_format to convert to png, jpeg, or webp. Requires COMFYUI_HOST.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt_id": "<prompt_id>",
"node_id": "<node_id>",
"filename": "<filename>",
"dest_path": "<dest_path>"
},
"name": "download_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Node id (from list_outputs) | |
| filename | Yes | Filename (from list_outputs) | |
| dest_path | Yes | Local path to save the file | |
| prompt_id | Yes | Prompt id | |
| subfolder | No | Subfolder (from list_outputs) | |
| output_format | No | Convert image to this format (png, jpeg, or webp) | |
| convert_quality | No | Quality for jpeg/webp (default 85) |