generate_image
Create images from text prompts by running a saved ComfyUI workflow, then get the result inline with a shareable URL.
Instructions
Generate an image on ComfyUI and return it inline.
Returns " · seed · " plus -- unless this server was started with --no-inline-image -- the image itself.
Clients usually collapse tool results, so the image is easy to miss. Pass the URL on in your reply: it survives the collapse, and is how the user sees the picture when no image is returned. Write it bare so the client turns it into a link -- code formatting or backticks make it unclickable.
Use exactly the workflow name the user asked for. Similar names are different workflows -- "Krea2" and "Krea2+Upscale" are not interchangeable.
Fails if the workflow needs an input image or has no prompt node to patch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Reuse a seed from an earlier result to reproduce it. Omit for a new one. | |
| prompt | Yes | What to draw, in plain language. | |
| workflow | Yes | Name of a workflow saved in ComfyUI, exactly as list_workflows returns it. If you do not have a name yet, call list_workflows and use the first ready one rather than asking the user to choose. |