run_judged
Run a saved ComfyUI workflow with rubric-based judging to iteratively generate, fix, and keep the best result.
Instructions
Run a saved workflow under the harness: generate -> judge with the rubric -> fix -> judge ..., keeping the best result. prompt_field: the input that holds the prompt, e.g. "Positive.text"; on a retry the judge's problems are appended to it. description: what the image must show (the judge checks against it). rubric: rubric JSON file path or JSON (see harness.py). Starts in the background and returns a job id at once; poll get_judged(job_id). Needs JUDGE_URL and JUDGE_MODEL.
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>",
"prompt_field": "<prompt_field>",
"prompt": "<prompt>",
"description": "<description>",
"rubric": "<rubric>"
},
"name": "run_judged"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| name | Yes | ||
| images | No | ||
| prompt | Yes | ||
| rubric | Yes | ||
| description | Yes | ||
| download_dir | No | ||
| prompt_field | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |