Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

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

let value: WebFetchPlugin = {
  id: "web-fetch",
};

Fields

FieldTypeRequiredDescription
allowedDomainsstring[]:heavy_minus_sign:Only fetch from these domains.
blockedDomainsstring[]:heavy_minus_sign:Never fetch from these domains.
id”web-fetch”:heavy_check_mark:N/A
maxContentTokensnumber:heavy_minus_sign:Maximum content length in approximate tokens. Content exceeding this limit is truncated.
maxUsesnumber:heavy_minus_sign:Maximum number of web fetches per request. Once exceeded, the tool returns an error.