Inputs
Outputs
You can expose properties from Outputs as individual node outputs, then
connect only the values later actions need.
Read inputs and return outputs
Import the default export from./inputs, then export each result as a named
value:
subtotal and taxRate. The action returns:
console.log appears in Logs, not Outputs.
Import packages
Code runs with the Bun runtime, so standard imports are supported:Serialization rules
Inputs and outputs cross the action boundary as JSON:- Inputs may contain strings, numbers, booleans,
null, lists, and objects. - Exported functions, symbols,
undefined, and other non-JSON values are not reliable outputs. BigInt, circular objects, and other values that JSON cannot serialize cause the run to fail.- Class instances lose behavior when serialized; return plain data instead.
The code is executed as a module. Only exported values are returned. Local
variables stay private unless you add a named export.
Troubleshooting
An input is undefined
An input is undefined
Confirm that its Input Variables name matches the property read from the
default
./inputs export. Names are case-sensitive.Outputs is empty
Outputs is empty
Add named exports such as
export const result = value. Logging a value does
not return it.The run fails while saving results
The run fails while saving results
Check every exported value for JSON compatibility. Remove functions,
BigInt,
circular references, and unsupported runtime objects.A package import fails
A package import fails
Check the package name and import path. If reproducibility matters, specify
a supported npm version in the import rather than relying on the latest
resolved package.