Skip to main content

Overview

A built-in tool that allows models to search the web for information.

Usage

Advanced Configuration

Parameters

  • search_context_size (str): Context amount - ‘low’, ‘medium’, or ‘high’ (default: ‘medium’)
    • Supported by: OpenAI Responses
  • user_location (WebSearchUserLocation, optional): Localize search results
    • Supported by: Anthropic, OpenAI Responses
  • blocked_domains (List[str], optional): Domains to exclude from results
    • Supported by: Anthropic, Groq
  • allowed_domains (List[str], optional): Only include these domains
    • Supported by: Anthropic, Groq
    • Note: Cannot use both blocked_domains and allowed_domains with Anthropic
  • max_uses (int, optional): Maximum number of searches allowed
    • Supported by: Anthropic