WebFetchServerToolConfig - Python SDK

WebFetchServerToolConfig method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Configuration for the openrouter:web_fetch server tool

Fields

FieldTypeRequiredDescriptionExample
allowed_domainsList[str]Only fetch from these domains.
blocked_domainsList[str]Never fetch from these domains.
engineOptional[components.WebFetchEngineEnum]Which fetch engine to use. “auto” (default) uses native if the provider supports it, otherwise Exa. “native” forces the provider’s built-in fetch. “exa” uses Exa Contents API. “openrouter” uses direct HTTP fetch. “firecrawl” uses Firecrawl scrape (requires BYOK). “parallel” uses the Parallel extract API.auto
max_content_tokensOptional[int]Maximum content length in approximate tokens. Content exceeding this limit is truncated.100000
max_usesOptional[int]Maximum number of web fetches per request. Once exceeded, the tool returns an error.10