Input and Output variables are key when building tools in Brain Studio. They let you receive data from the flow that invokes your tool and return results when its execution finishes.
Inputs
Input values are defined from the inputs manager while you configure your tool. Each input you declare will be available at runtime through:{{$input.name}}inside any node.$input.get('name', [defaultValue])inside code nodes.
city:
Outputs
The outputs of a tool are defined from a code node using$output.set(key, value). These values become available to the flow after the tool finishes.
$output.set multiple times (one per key).
Make sure the names you use in
$output.set('key', value) match the outputs you declared in the tool’s end node; that way the flow can consume them without errors.