Type/to search
Nodes
Manual Trigger
Schedule Trigger
RSS Feed Trigger
Kline Close Trigger
Discord Trigger
Telegram Trigger
Slack Trigger
AI Agent
Sentiment Analysis
MCP Client
OpenAI Model
Anthropic Chat Model
Code Tool
HTTP Request Tool
MCP Client Tool
Code
HTTP Request
Edit Fields (Set)
Filter
IF
Loop Over Items
Merge
Aggregate
Compare Datasets
Convert to File
Crypto
Database
Extract from File
HTML
Limit
Log
No Operation, do nothing
RSS Read
Read Files from Disk
Remove Duplicates
Rename Keys
S3
Sort
Split Out
Stop And Error
Summarize
Switch
Telegram
Wait
Write Files To Disk
XML
App push
DingTalk Robot
Discord Bot
Email
Feishu Custom Bot
Slack
Account Info
Market Info
Trading Executor
Indicator
Trading Plugin
Credentials


Use the Custom Code Tool node to write code that an agent can execute.

On this page, you'll find the node parameters for the Custom Code Tool node and links to additional resources.

Node parameters

Description

Provide a description for your custom code. This instructs the agent when to use this tool. For example:

Call this tool to retrieve a random color. The input should be a comma-separated string of color names to exclude.

Language

Select either JavaScript or Python.

JavaScript

Enter your code here.

Access the tool input using query. For example, to convert an input string to lowercase:

javascript
let myString = query; return myString.toLowerCase();

Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)