copy_output_to_input
Copies generated files from ComfyUI's output directory to input, making them available for subsequent workflows like image-to-image, image-to-video, and API nodes.
Instructions
Copy a file from ComfyUI's output directory to input directory.
Makes generated files (images, videos, audio) available as inputs for subsequent workflows. For example, copy a generated image to use it in image_to_image, image_to_video, or run_api_node.
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": {
"filename": "<filename>"
},
"name": "copy_output_to_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The filename in the output directory (e.g. "ComfyUI_MCP_00001_.png", "video/ComfyUI_MCP_api_00001_.mp4"). | |
| new_name | No | Rename the file in the input directory. Default: "" (keep original name). | |
| subfolder | No | Subfolder within output directory. Default: "" (root). Use "video" for video files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||