mcp-use TypeScript API
    Preparing search index...

    Interface ModelContextImageSource

    Image source resolved exactly like Image's public-folder paths.

    interface ModelContextImageSource {
        audience?: ("user" | "assistant")[];
        data?: undefined;
        mimeType?: undefined;
        src: string;
        title?: string;
    }

    Hierarchy (View Summary)

    Index
    audience?: ("user" | "assistant")[]

    Maps to MCP annotations.audience. All blocks still reach the model.

    data?: undefined

    Source images cannot also provide native bytes.

    mimeType?: undefined

    The fetched response supplies the MIME type.

    src: string

    Public-folder path or URL fetched up to 10 MiB and converted before selection changes.

    title?: string

    Optional display label. The SDK handles encoding and host restoration.