Skip to content
masterclass Buddy

AI Agents · Class

WebSearchTool

WebSearchTool lets an OpenAI model in a Microsoft Foundry project search the internet for current information and sources. Bind it to the model so it can use web search during inference.

Last updated

Syntax

WebSearchTool(search_context_size=None, user_location=None, filters=None)

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

Subscribe
  • CodeInterpreterTool
  • FileSearchTool
  • ImageGenerationTool
  • McpTool
  • AzureOpenAIModelImageGenTool
  • AzureOpenAITranscriptionsTool
  • AzureAIProjectToolbox

Source: Microsoft Foundry tools integration - Docs by LangChain Documentation. Checked 2026-11-03.