pi-wr-comfy-image
Generate images in pi with your ComfyUI App Mode workflows: two plain tools, comfy_workflow_inputs and comfy_generate
Package details
Install pi-wr-comfy-image from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-wr-comfy-image- Package
pi-wr-comfy-image- Version
0.2.4- Published
- Oct 4, 2026
- Downloads
- 341/mo · 341/wk
- Author
- webrevizor
- License
- Apache-2.0
- Types
- extension
- Size
- 790.5 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./dist"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-wr-comfy-image
Generate images in pi with your own ComfyUI workflows. Every App Mode workflow you save in ComfyUI that produces images can be run by the agent with one plain tool call — prompt, input images and any input App Mode exposes, no annotations needed. Simple enough for small models.
- Works with any workflow: the plugin converts ComfyUI's UI format itself (subgraphs, Set/Get nodes, reroutes, bypassed and muted nodes), checked node by node against ComfyUI's own frontend.
- Inputs come from App Mode: what you exposed in the UI is what the agent can set, named after your node titles.
- Images are saved into the current project under
.pi/images/; the agent gets their paths (no image tokens) and reads a file only when it needs to look.
Quick start
Requirements: pi ≥ 1.0.1, Node 24, a running ComfyUI (≥ 0.38).
pi install npm:pi-wr-comfy-image@0.2.4
# or from git:
pi install git:github.com/web-revizor/pi-wr-comfy-image@v0.2.4
In ComfyUI, open a workflow, switch to App Mode, pick the inputs to expose and save it. Then ask the agent, e.g. "generate a lighthouse at sunset with comfyui qwen21_i2i_t2i in t2i mode, 16:9". It uses two tools:
| Tool | What it does |
|---|---|
comfy_workflow_inputs |
lists the workflows and their params, one short line each |
comfy_generate |
runs a workflow: workflow, prompt, images (file paths), params |
{
"workflow": "qwen21_i2i_t2i",
"prompt": "a lighthouse on a cliff at sunset, oil painting",
"params": {
"режим": "t2i",
"aspect": "16:9",
"довга_сторона_результату": 1024
}
}
Param names come from your node titles, in their language — see Parameters.
Documentation
| Document | Contents |
|---|---|
| Configuration | server URL, excluded workflows, timeout, prompt input |
| Parameters | the tool's arguments, param names, values, seeds |
| Troubleshooting | common errors |
License
Apache License 2.0; keep the NOTICE file when redistributing. ComfyUI and pi are separate projects of their respective owners.