run_workflow
Runs a named ComfyUI workflow with custom inputs, validates it before execution, and returns a job ID for tracking generated files.
Instructions
Runs one of your workflows. inputs = {"prompt": "...", "image": "C:/pics/cat.png", "steps": 20} using the names from list_workflows; a file path for image/video/audio is copied into ComfyUI for you. A new random seed each run unless you pass seed or keep_seed=true. Checks the workflow first and refuses if it would fail (force=true runs anyway). Returns a job id: wait with job_status; the saved files come back in "files".
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": {
"name": "<name>"
},
"name": "run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No | ||
| inputs | No | ||
| priority | No | user | |
| keep_seed | No |