WebFetchServerToolConfig - Go SDK

WebFetchServerToolConfig type definition

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

Configuration for the openrouter:web_fetch server tool

Fields

FieldTypeRequiredDescriptionExample
AllowedDomains[]stringOnly fetch from these domains.
BlockedDomains[]stringNever fetch from these domains.
Engine*components.WebFetchEngineEnumWhich 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
MaxContentTokens*int64Maximum content length in approximate tokens. Content exceeding this limit is truncated.100000
MaxUses*int64Maximum number of web fetches per request. Once exceeded, the tool returns an error.10