Skip to content
masterclass Buddy

AI Agents · Class

RunHooks

ToolNode executes the tools requested by the latest AIMessage. It supports StateGraph and MessageGraph and returns one ToolMessage for each call.

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.