Google Drive

GoogleDrive_UploadFile

Upload a file to Google Drive from a URL. Fetches the file content from the provided URL and uploads it to Google Drive. Supports files of any size - uses resumable upload internally for large files. CANNOT upload Google Workspace files (Google Docs, Sheets, Slides) CANNOT upload files larger than 25MB

Remote googledrive

Remote (network-hosted)

Other tools also called GoogleDrive_UploadFile? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "file_name": {
      "type": "string",
      "description": "The name for the uploaded file"
    },
    "mime_type": {
      "enum": [
        "text/plain",
        "text/csv",
        "application/json",
        "text/html",
        "text/markdown",
        "application/pdf",
        "image/png",
        "image/jpeg",
        "image/gif",
        "image/webp",
        "image/svg+xml"
      ],
      "type": "string",
      "description": "The file type. If not provided, will be inferred from the URL or Content-Type header. Supported: text (txt, csv, json, html, md), pdf, images (png, jpeg, gif). Defaults to None (auto-detect)."
    },
    "source_url": {
      "type": "string",
      "description": "The public download URL to fetch the file content from. The tool will download from this URL and upload to Google Drive"
    },
    "shared_drive_id": {
      "type": "string",
      "description": "If uploading to a folder in a shared drive using a path, provide the shared drive ID. Not needed when using folder IDs or uploading to My Drive. Defaults to None ('My Drive')"
    },
    "destination_folder_path_or_id": {
      "type": "string",
      "description": "The folder path like folder/subfolder or folder ID where to upload. If None, uploads to the root of 'My Drive'. If providing a path, it will be resolved within 'My Drive' by default. Defaults to None."
    }
  }
}