langchain.js
    Preparing search index...

    Interface WebFetch20250910Options

    Options for the web fetch tool.

    interface WebFetch20250910Options {
        allowedDomains?: string[];
        blockedDomains?: string[];
        cacheControl?: BetaCacheControlEphemeral;
        citations?: { enabled: boolean };
        maxContentTokens?: number;
        maxUses?: number;
    }
    Index

    Properties

    allowedDomains?: string[]

    If provided, only these domains will be fetched. Cannot be used alongside blockedDomains.

    blockedDomains?: string[]

    If provided, these domains will never be fetched. Cannot be used alongside allowedDomains.

    cacheControl?: BetaCacheControlEphemeral

    Create a cache control breakpoint at this content block.

    citations?: { enabled: boolean }

    Enable citations for fetched content. Unlike web search where citations are always enabled, citations are optional for web fetch.

    maxContentTokens?: number

    Maximum content length in tokens. If the fetched content exceeds this limit, it will be truncated. This helps control token usage when fetching large documents.

    maxUses?: number

    Maximum number of times the tool can be used in the API request.