Nodes/ComfyUI-ShellAgent-Plugin/Input Float (ShellAgent Plugin)
ComfyUI Node

Input Float (ShellAgent Plugin)

A named numeric slot with a real slider

By myshell-ai·Created 2 years ago·Updated 3 months ago· 45
Input Float (ShellAgent Plugin)
    • float
    input_nameinput_float
    default_value0.00
    minimum0.00
    maximum0.00
    description
    choices

    Input Float (ShellAgent Plugin) is the pack's way of letting a caller hand your workflow a decimal number - a strength, a CFG scale, a denoise level, whatever you want to expose. It's the float sibling of Input Text: a named, externally-settable FLOAT slot that a ShellAgent app fills in at runtime, with a widget value you can type while testing locally.

    The selling point over a plain float constant is the minimum / maximum pair. Those two fields are what tell the app to render a slider with real bounds instead of a free-form number box - and that's also the thing most people forget to set.

    How it works

    The node's validate() method advertises the input's schema to ShellAgent - title from input_name, type number, plus the min/max bounds you configured. The app builds its form from that, injects the chosen value, and the node returns it on the float socket. Run standalone and the widget's default_value is simply what comes out. Nothing clever, which is exactly what you want from an input shim.

    Inputs that matter

    • input_name - the variable name the app sees. Default input_float.
    • default_value - the value used when the app doesn't supply one. This is what you type in while testing.
    • minimum / maximum - set both if you want a bounded slider. The defaults are 0 and 0, which the app reads as "range from 0 to 0" - effectively a locked slider. Set real bounds.
    • description - optional help text for the app's UI.
    • choices - an optional picklist, same "manage choices" mechanism as Input Text, if you want the app to offer discrete options instead of a free number.

    Output: a single FLOAT on the float socket.

    One thing to note: there's no step field on this node like the integer version has, so continuous values are the norm here. If you need discrete stepping, reach for Input Integer.

    Installing it

    Same one-pack install as the whole family:

    cd ComfyUI/custom_nodes
    git clone https://github.com/myshell-ai/ComfyUI-ShellAgent-Plugin
    

    restart, or find ComfyUI-ShellAgent-Plugin in ComfyUI Manager. No model files; the pack's pip dependencies (pydantic, opencv-python, pillow_heif, …) install alongside it.

    Common issues

    • The app's slider is stuck at 0. You left minimum/maximum at their defaults. Set both to real values.
    • The app shows a text field instead of a slider. Same root cause - no bounds means the app can't infer a slider.
    • My float keeps rounding. If you're feeding the output into an INT socket downstream, that rounding is the downstream node, not this one - this node passes the float through untouched.

    It's a small node with a small job. Get the min/max right and it disappears into your workflow, which is the highest compliment an input shim can earn.

    Categoryshellagent

    Inputs (6)

    NameTypeDefaultDescription
    input_nameSTRINGinput_float
    default_valueoptFLOAT0.00
    minimumoptFLOAT0.00
    maximumoptFLOAT0.00
    descriptionoptSTRING
    choicesoptSTRING

    Outputs (1)

    NameTypeDescription
    floatFLOAT