import_workflow
Imports an existing ComfyUI workflow into the session from JSON, a saved name, or a local file for beautifying, diagnosing, or porting.
Instructions
Import an existing workflow into the session. Provide exactly ONE source:
workflow_json: paste the JSON inline (UI format with nodes/links, or API format {id: {class_type, inputs}})name: load straight from ComfyUI's workflow browser (see list_workflows) - preferred for large files, no pasting neededfile_path: read a local .json file Use for beautifying/diagnosing/porting outside work.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| title | No | ||
| file_path | No | ||
| workflow_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||