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

    Interface SubmitChatAction

    interface SubmitChatAction {
        chat: string;
        images?: { data: string; format: "jpeg" | "png" }[];
        modelId?: string;
        target: OpenTarget;
    }
    Index

    Properties

    chat: string

    The chat message to submit to Duck.ai

    images?: { data: string; format: "jpeg" | "png" }[]

    Images to attach to the chat. Optional - maximum 3 images. Images are resized to 512px max dimension; encoded output is capped at 10MB per image. WebP images are converted to PNG.

    Type Declaration

    • data: string

      Base64-encoded image data (without data URL prefix)

    • format: "jpeg" | "png"

      Image format after processing. Only 'jpeg' or 'png' are sent. JPEG is preserved for .jpg/.jpeg files, all others (including WebP) are converted to PNG.

    modelId?: string

    The selected AI model identifier. Optional - if not provided, the backend will use the default model.

    target: OpenTarget