Code action reference
This page is generated from the plugin registry. Do not edit it by hand.
Execute custom JavaScript code server-side in a sandboxed VM. Code can make outbound HTTP requests via fetch (subject to the configured timeout). Not a security boundary; intended for authenticated team members only.
For guidance and examples see the Code guide.
Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.
| Action | Action type |
|---|---|
| Run Code | code/run-code |
Run Code
Action type: code/run-code. Connection: not required.
Execute custom JavaScript in a sandboxed environment with access to workflow data via template variables
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
code | string | Yes | JavaScript Code. | ||
timeout | number | No | 60 | min 1, max 120 | Timeout (seconds). |
Outputs
| Output | Description |
|---|---|
success | Whether the code executed successfully |
result | The return value of the executed code |
logs | Captured console output (log, warn, error) from the code |
error | Error message if execution failed |
line | Line number where the error occurred (if available) |