n8n Custom Code Tool Expert guidance for writing code inside — the tool an AI Agent can invoke, not the regular workflow Code node. --- ⚠️ This is NOT the Code node The Custom Code Tool looks like a Code node in the editor — same JavaScript editor, similar layout — but it is a completely different node from a different package with a different runtime contract . | | Code node | Custom Code Tool | |---|---|---| | Node type | | | | Package | | | | Invoked by | Previous node (workflow flow) | AI Agent (LangChain) | | Input | — item stream | — string or object from LLM | | Return | (items array)…