@duckduckgo/content-scope-scripts
    Preparing search index...

    Interface NativePromptFile

    File attached to a Duck.ai prompt. Shape mirrors Duck.ai's existing NativePromptFile input so native forwards entries unchanged. NTP encodes the file in the browser (FileReader.readAsDataURL → base64) and includes it on omnibar_submitChat.

    interface NativePromptFile {
        data: string;
        fileName: string;
        mimeType: string;
    }
    Index

    Properties

    data: string

    Base64-encoded file bytes, without the data: URL prefix.

    fileName: string

    Original filename, used for chip display in the omnibar and forwarded to Duck.ai.

    mimeType: string

    MIME type of the file. v1: NTP only sends application/pdf. The field is left as an open string (not an enum) to match Duck.ai's input shape and to let additional types be added later without a schema change.