Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Configuration for the openrouter:web_fetch server tool

Example Usage

import { WebFetchServerToolConfig } from "@openrouter/sdk/models";

let value: WebFetchServerToolConfig = {};

Fields

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