Skip to main content

Overview

A built-in tool that allows models to fetch and read content directly from URLs. This is the recommended replacement for the deprecated UrlContextTool.

Usage

Advanced Configuration

Parameters

  • max_uses (int, optional): Maximum number of URL fetches allowed
    • Supported by: Anthropic
  • allowed_domains (List[str], optional): Only fetch from these domains
    • Supported by: Anthropic
    • Note: Cannot use both allowed_domains and blocked_domains with Anthropic
  • blocked_domains (List[str], optional): Never fetch from these domains
    • Supported by: Anthropic
    • Note: Cannot use both blocked_domains and allowed_domains with Anthropic
  • enable_citations (bool): Enable citations for fetched content (default: False)
    • Supported by: Anthropic
  • max_content_tokens (int, optional): Maximum content length in tokens for fetched content
    • Supported by: Anthropic

Provider Support

  • Anthropic: ✅ Full support
  • Google: ✅ Full support
  • OpenAI Responses: ❌ Not supported