WebFetchServerToolConfig - TypeScript SDK

WebFetchServerToolConfig type definition

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

Configuration for the openrouter:web_fetch server tool

Example Usage

1import { WebFetchServerToolConfig } from "@openrouter/sdk/models";
2
3let value: WebFetchServerToolConfig = {};

Fields

FieldTypeRequiredDescriptionExample
allowedDomainsstring[]Only fetch from these domains.
blockedDomainsstring[]Never fetch from these domains.
enginemodels.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
maxContentTokensnumberMaximum content length in approximate tokens. Content exceeding this limit is truncated.100000
maxUsesnumberMaximum number of web fetches per request. Once exceeded, the tool returns an error.10