ADK for TypeScript: API Reference
    Preparing search index...

    Interface WebMCPToolsetOptions

    Options for WebMCPToolset.

    interface WebMCPToolsetOptions {
        document?: WebMCPDocument;
        fromOrigins?: string[];
        prefix?: string;
        toolFilter?: string[] | ToolPredicate;
    }

    Properties

    document?: WebMCPDocument

    Document to read modelContext from. Defaults to the global document.

    fromOrigins?: string[]

    Secure origins to also collect tools from, for cross-origin iframes. A cross-origin tool is only returned if its page also exposed it to this origin via exposedTo.

    prefix?: string

    Prefixes every discovered tool name with ${prefix}_.

    toolFilter?: string[] | ToolPredicate

    Restricts which tools reach the model, by name or predicate.