WebFetchPlugin - TypeScript SDK

WebFetchPlugin type definition

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

Example Usage

1import { WebFetchPlugin } from "@openrouter/sdk/models";
2
3let value: WebFetchPlugin = {
4 id: "web-fetch",
5};

Fields

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