Skip to content
masterclass Buddy

AI Agents · Class

Runner

ToolNode is a prebuilt LangGraph node that runs tools requested by the last AIMessage. It returns a ToolMessage for each tool call and can run multiple calls in parallel.

Last updated

Syntax

new ToolNode(tools)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • StateGraph
  • MessageGraph
  • AIMessage
  • ToolMessage
  • tool

Source: ToolNode | LangGraph.js API Reference. Checked 2026-11-03.