Frodo Library - v4.0.0-42
    Preparing search index...

    Type Alias McpToolRuntimeOptions

    Optional runtime customization hooks.

    type McpToolRuntimeOptions = {
        frodoRoot?: Frodo;
        paginationWarningThreshold?: number;
        resolveFrodoForRequest?: (
            context: McpRuntimeRequestContext,
            frodoRoot: Frodo,
        ) => Frodo | Promise<Frodo>;
        resultWarningThresholdBytes?: number;
    }
    Index

    Properties

    frodoRoot?: Frodo

    Optional root Frodo instance used by the default resolver. Defaults to the library singleton frodo.

    paginationWarningThreshold?: number

    Optional heuristic threshold used to flag potentially paginated array responses when no explicit pagination controls were provided.

    Defaults to 1000.

    resolveFrodoForRequest?: (
        context: McpRuntimeRequestContext,
        frodoRoot: Frodo,
    ) => Frodo | Promise<Frodo>

    Optional custom resolver that returns a request-scoped Frodo instance. When omitted, resolveRequestScopedFrodo is used.

    resultWarningThresholdBytes?: number

    Optional payload size threshold used to flag large inline responses and produce actionable summary metadata for agents.

    Defaults to 65536 bytes.