@adcp/client API Reference - v3.3.3
    Preparing search index...

    Function unwrapProtocolResponse

    • Extract raw AdCP response from protocol wrapper

      Parameters

      • protocolResponse: any

        Raw response from MCP or A2A protocol

      • OptionaltoolName: string

        Optional AdCP tool name for validation

      • Optionalprotocol: "mcp" | "a2a"

        Protocol type ('mcp' or 'a2a'), if known. If not provided, will auto-detect.

      Returns AdCPResponse & { _message?: string }

      Raw AdCP response data matching schema exactly

      If response doesn't match expected schema for the tool