@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Interface AdcpInvokeOptions

    Arguments accepted by AdcpServer.invoke(). A transport adapter (MCP serve(), createA2AAdapter(), etc.) authenticates the incoming request, maps it to one of the registered AdCP tool names, then calls this surface to run the framework pipeline (idempotency, account resolution, validation, governance, response-union narrowing).

    interface AdcpInvokeOptions {
        toolName: string;
        args: Record<string, unknown>;
        authInfo?: AdcpAuthInfo;
        signal?: AbortSignal;
        enforceRequestSchema?: true;
        responseContext?: StructuredContentTextFallbackContext;
    }
    Index
    toolName: string

    AdCP tool name (get_products, create_media_buy, ...).

    args: Record<string, unknown>

    Tool arguments as received from the transport, pre-schema-validation.

    authInfo?: AdcpAuthInfo

    Auth principal the transport produced from its authenticate hook. Handlers and resolveAccount see it as ctx.authInfo. Transports MUST verify the principal before calling invoke() — invoke() does NOT re-check the token.

    signal?: AbortSignal

    Abort signal for cancellation; defaults to a fresh controller.

    enforceRequestSchema?: true

    Require the framework to enforce the bundled request schema even when the server's general validation mode is warn or off. Transport adapters that advertise the exact official schema use this strengthening-only flag so failures retain the structured AdCP error envelope.

    Transport/session facts used only after the canonical response has been finalized and cached. Omit for direct embedding; the fail-safe direct path mirrors structured content for compatibility.