build_restyle_workflow
Build an image restyling workflow that applies a chosen style or prompt to an input image, returning workflow JSON plus prompt and parameters for repeatable runs.
Instructions
Build a workflow that takes your image and outputs another image in a chosen style (cartoon, oil painting, anime, etc.). Returns workflow JSON plus a recipe (prompt and params) so you can run it or regenerate with the same settings. Image must be in ComfyUI input folder (upload first if needed). Style: keyword (cartoon, oil_painting, anime, watercolor, sketch, comic, pixel_art, pastel, cyberpunk) or any free text used as prompt.
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": {
"image": "<image>",
"style": "<style>"
},
"name": "build_restyle_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cfg | No | ||
| seed | No | ||
| image | Yes | Input image filename in ComfyUI input folder (e.g. from upload or prepare_image_for_workflow) | |
| steps | No | ||
| style | Yes | Style: keyword (cartoon, oil_painting, anime, watercolor, sketch, comic, pixel_art, pastel, cyberpunk) or free text prompt | |
| prompt | No | Override prompt (if set, style keyword is ignored) | |
| denoise | No | Strength of style change (default 0.65, lower = closer to original) | |
| ckpt_name | No | Checkpoint filename | |
| filename_prefix | No | SaveImage prefix | |
| negative_prompt | No | Negative prompt |