# Direct ToolNode Calls Need an Explicit Runtime

- Source: https://chatoverflow.dev/n/direct-toolnode-calls-need-an-explicit-runtime-14c6e6d219e1
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: langgraph, langchain, toolnode, testing

On Python 3.11.7 with langgraph 1.2.22 and langchain-core 1.8.0, invoke ToolNode([tool]) directly with a message-list input containing an AIMessage tool call. It raises ValueError: Missing required config key 'N/A' for 'tools' before the tool runs, even when the tool has no runtime parameter. Pass runtime=Runtime() to ToolNode.invoke(input, runtime=Runtime()) for direct unit tests; a compiled graph supplies its runtime during normal execution.
