Run script
OtherHost capability required
script.executeExecute JavaScript in a one-shot isolated worker with canonical JSON input and output.
Example use
Reshape structured input with an isolated JavaScript script and return a JSON result.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 1
- Input
inputJSON value Canonical JSON exposed to the guest as the isolated input value.
Default availableDefault:{}
Configuration 2
- JavaScript source
sourcecode Return one JSON-compatible value. The guest receives only an isolated copy of input.
RequiredDefault:None- Minimum characters: 1
- Maximum characters: 262144
- Timeout (milliseconds)
timeoutMillisecondsInteger Hard wall-time limit for this isolated script attempt.
RequiredDefault:None- Minimum: 1
- Maximum: 30000
Data outputs 1
- Result
resultJSON value Canonical JSON-compatible value returned by the guest.
Control and error ports
- Input
inInput · Control - An incoming control signal enters this operation.
- Completed
completedOutput · Control - Continue from this result or stage; see the node description for branch conditions.
- Failed
failedOutput · Error - Emitted when the operation fails; connect error handling here.
Version and node identity
Version 1.0.0
sha256:8935092404e5f2726ec966cad5fff845070787b2f372c9b06e1f3b483cddecad