Nodes/comfybridgeio/Bridge Input (INT)
ComfyUI Node

Bridge Input (INT)

Steps, seeds, and batch sizes your agent can tune

By cbpark84·Created 2 months ago·Updated 2 months ago· 0
Bridge Input (INT)
    • value
    nameinput_name
    value0
    value_link

    Text-to-image is half prompt, half knobs - and the knobs are integers. Steps, width, height, batch size, which checkpoint slot. Bridge Input (INT) is the named socket ComfyBridgeIO gives you so an outside agent or script can tune those without re-editing the workflow JSON. It's the second-most-used node in this pack after the STRING variant, and they usually sit side by side: prompt in one, steps in the other.

    The mechanism is the pack's standard one. You drop the node in, give it a name, save the workflow as API format JSON, and the bundled Python client patches its value at runtime (bridge.run("workflow.json", inputs={"steps": 30})). The client deep-copies the workflow so the original file is untouched, POSTs to ComfyUI, waits, collects. The node itself is just a passthrough - a marked place for the agent to write.

    The inputs and output that matter

    • name (STRING, default "input_name") - the identifier your inputs dict key must match exactly. steps in the widget, {"steps": 30} in Python. Get it wrong and the client throws BridgeInput 'x' not found in workflow.
    • value (INT, default 0, min −2^31, max 2^31) - the number baked into the workflow. This is what runs when nobody injects anything, so a sensible default (like 30 steps) keeps the graph usable on its own.
    • value_link (optional INT socket) - connect another node's integer output here and it overrides the widget. Remember that it also shadows anything an agent injects. Leave it unwired unless you actually want a fixed upstream source.

    Output is a single value (INT) socket. Feed it to the KSampler's steps, an Empty Latent's width/height, or a batch count - anywhere an integer lives.

    Install

    ComfyUI Manager → search ComfyBridgeIO → Install, then restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/cbpark84/ComfyBridgeIO
    

    Restart ComfyUI and you're done. No models to download, nothing heavy. The optional Python client (pip install -e in the repo) needs aiohttp, websockets, and Pillow. Small gotcha if you ever install from the README: its clone line says nicekate/ComfyBridgeIO - that's stale, the repo is cbpark84 as above.

    Common issues

    Most complaints here are really contract problems: the name doesn't match the dict key (case-sensitive, check it), or the value the agent sends isn't an int - the client will happily int()-cast a string, but it can't make "30.5" into an integer. Keep values integer-typed in whatever drives the client and this node is boring in the good way.

    CategoryComfyBridgeIO

    Inputs (3)

    NameTypeDefaultDescription
    nameSTRINGinput_name
    valueINT0-2147483648–2147483648
    value_linkoptINT

    Outputs (1)

    NameTypeDescription
    valueINT