Linea Docs

Code Node

Sandboxed JavaScript execution node — currently disabled pending Pod VM infrastructure.

Code Node

The code node is designed to execute arbitrary JavaScript in an isolated environment. It is currently disabled while Pod VM infrastructure (Kata Containers / Firecracker) is being provisioned.

Code node execution is disabled. Invoking this node will immediately fail the execution with: "Code node execution is currently disabled. Arbitrary code execution requires a dedicated Pod VM for safe sandboxing."

Use the Agent node with the run_javascript tool as an interim solution (requires human approval per run).

Planned Configuration

Once enabled, the node will accept:

FieldTypeDefaultDescription
codestringJavaScript to execute. input is bound to lastOutput. Must assign to output.
languagejavascriptjavascriptLanguage (only JavaScript planned initially)
timeoutMsnumber5000Execution timeout

Planned Example

const lines = input.split('\n');
output = lines.map(l => l.trim()).filter(Boolean);

Alternative: Agent + run_javascript Tool

Until the Code node is available, enable the run_javascript built-in tool on an Agent node:

{
  "model": "claude-haiku-4-5-20251001",
  "instructions": "Run this transformation: {{input.codeRequest}}",
  "tools": ["run_javascript"]
}

Note that run_javascript always requires human approval due to the approval: 'always' policy.

On this page