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

Output Float (ShellAgent Plugin)

Send a number back to the app

By myshell-ai·Created 2 years ago·Updated 3 months ago· 45
Output Float (ShellAgent Plugin)
      float
      output_nameoutput_float

      Output Float (ShellAgent Plugin) is how a workflow hands a decimal number back to the app driving it - a score, a similarity value, a quality metric your pipeline computed. Like every output node in this pack, it has no sockets leading out: it's a terminal that takes a FLOAT in, tags it with an output_name, and emits it over ComfyUI's UI result channel for the parent application to read.

      If you're used to output nodes that show something on screen, reset expectations: this one produces nothing visible. The value only materializes in the app that ran the workflow, as a named field in the returned result.

      How it works

      The pattern is identical to the pack's Output Text: wire a float into the float input, set output_name (default output_float), and the node pushes {"ui": {"output": [value]}} when the queue completes. Its validate() method reports {title: output_name, type: number} to ShellAgent, so the app knows to render a number and which key to expect. That's the entire mechanism - it's a return value for an external caller, not a display node.

      The inputs

      • float - the value to return. Wire it from any node with a FLOAT output. You can't connect an INT directly; convert first if your source is an integer.
      • output_name - the key the app reads. Default output_float; rename it if you're returning several numbers.

      Installing it

      Same one-pack install as the rest of the family:

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

      restart, or search ComfyUI-ShellAgent-Plugin in ComfyUI Manager. No model files, no surprises beyond the pack's shared pip requirements.

      Common issues

      • Nothing appears on screen. Expected - output nodes in this pack don't render locally. Check the app's result payload.
      • Can't connect my INT source. The input is strictly FLOAT. Convert with a number-conversion node first.
      • The app gets the wrong key. output_name collides with another output node's name. Keep them unique.

      It's the numeric twin of Output Text, built for the "this workflow computes a number" case. Set a clear name and let it sit quietly at the end of the graph.

      Categoryshellagent

      Inputs (2)

      NameTypeDefaultDescription
      floatFLOATThe float to output.
      output_nameSTRINGoutput_float

      Outputs (0)

      No outputs