Node.js Code Execution Toolkit
The Node.js Code Execution Toolkit is a workflow node. Its tools include Execute Nodejs, Search Knowledge Base Files, Upload File To Sandbox, and List Sandbox Files, plus 1 more listed below. These tools run in the workflow and do not use a third-party account. Type @ in a field when the value should come from an earlier step.
Authentication
Node.js Code Execution tools do not use a connected third-party account. Add the node to the workflow and set the fields on the tool.
Tools
Execute Nodejs
Runs the execute nodejs tool.
| Field | Required | Description |
|---|---|---|
| Code | Yes | Node.js/JavaScript code to execute in the sandbox. Type @ to select a variable. |
| Entry Point | No | Entry function name to call inside the provided code. Default is main. Type @ to select a variable. |
| Args | No | Positional arguments. Default is []. |
| Kwargs | No | Keyword arguments. Default is \{\}. |
| Dependencies | No | NPM package dependencies to install. Default is []. |
| Nodejs Runtime | No | Node.js runtime version (e.g. nodejs18.x, nodejs20.x, nodejs22.x). Default is nodejs20.x. Type @ to select a variable. |
Search Knowledge Base Files
Searches knowledge base files.
| Field | Required | Description |
|---|---|---|
| Query | Yes | Search query to find files in knowledge base. Type @ to select a variable. |
Upload File To Sandbox
Uploads file to sandbox.
| Field | Required | Description |
|---|---|---|
| File Path | Yes | File path from knowledge base to upload. Type @ to select a variable. |
| Target Path | No | Target path in sandbox (optional). Default is null. Type @ to select a variable. |
List Sandbox Files
Lists sandbox files.
| Field | Required | Description |
|---|---|---|
| — | — | This tool has no input fields. |
Create Download URL
Creates download url.
| Field | Required | Description |
|---|---|---|
| File Path | Yes | Path to file in sandbox to create download URL for. Type @ to select a variable. |
Related
Agents can use this integration from chat. See Node.js Code Execution.
See all integrations on the toolkits overview.