mcp-use TypeScript API
    Preparing search index...

    Interface UseFilesResult

    Value returned by useFiles.

    interface UseFilesResult {
        isSupported: boolean;
        getDownloadUrl(file: FileMetadata): Promise<{ downloadUrl: string }>;
        upload(file: File): Promise<FileMetadata>;
    }
    Index
    isSupported: boolean

    Whether the ChatGPT file upload and download extensions are available.

    • Request a temporary download URL for an uploaded file.

      Parameters

      Returns Promise<{ downloadUrl: string }>

    • Upload a file through ChatGPT.

      Parameters

      • file: File

      Returns Promise<FileMetadata>