diff --git a/libs/prebuilt/langgraph/prebuilt/tool_node.py b/libs/prebuilt/langgraph/prebuilt/tool_node.py index 40bdb116c..6585b8abf 100644 --- a/libs/prebuilt/langgraph/prebuilt/tool_node.py +++ b/libs/prebuilt/langgraph/prebuilt/tool_node.py @@ -1181,6 +1181,7 @@ def _wrap_tool_with_reserved_keywords(tool: BaseTool, reserved_args: dict[str, s name=tool.name, description=tool.description, func=tool.func if hasattr(tool, 'func') else None, + args_schema=FilteredSchema, # Set the filtered schema ) # Copy over other attributes @@ -1316,3 +1317,4 @@ def _get_runtime_arg(tool: BaseTool) -> Optional[str]: +