All data sources

OneDrive

OAuthonedrive

Microsoft OneDrive connector for listing, searching, downloading, and uploading files. CRITICAL USAGE RULES: 1. Use listDriveItems() first to discover folder and file IDs. 2. downloadDriveItem() returns file content as base64 (decode client-side if needed). 3. searchDriveItems() searches from the drive root only. 4. uploadDriveItem() requires filename + exactly one of contentBase64, contentText, sourceUrl, or fileContent (Buffer/Uint8Array). Prefer sourceUrl (server fetches the bytes) over contentBase64 for large files. 5. listDriveItems()/searchDriveItems() support select/top and fetchAll for pagination. 6. getItemByPath(), createFolder(), deleteItem(), moveItem(), copyItem(), createShareLink(), and batchDownload() are available for path and folder management.

Provenance

PublisherOneDrive

Freshness & coverage

FreshnessFreshness not declared
GeographicNot declared
TemporalNot declared
AuthenticationCredentials required (OAuth)

Methods (11)

  • listDriveItems

    read

    List OneDrive items in the root or a specific folder.

    Input schema
    {
      "type": "object",
      "properties": {
        "folderId": {
          "type": "string",
          "description": "Optional parent folder ID."
        },
        "folderPath": {
          "type": "string",
          "description": "Optional parent folder path."
        },
        "top": {
          "type": "number",
          "description": "Maximum items to return."
        }
      },
      "additionalProperties": true
    }
  • searchDriveItems

    read

    Search OneDrive items by text query.

    Required paramsquery
    Input schema
    {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "Search text."
        },
        "top": {
          "type": "number",
          "description": "Maximum items to return."
        }
      },
      "required": [
        "query"
      ],
      "additionalProperties": true
    }
  • downloadDriveItem

    read

    Download a OneDrive file by item ID or path.

    Input schema
    {
      "type": "object",
      "properties": {
        "itemId": {
          "type": "string",
          "description": "Drive item ID."
        },
        "path": {
          "type": "string",
          "description": "Drive item path."
        }
      },
      "additionalProperties": true
    }
  • moveItem

    write

    Move a OneDrive item to a different folder.

  • copyItem

    write

    Copy a OneDrive item to a different folder.

  • uploadDriveItem

    write

    Upload a file to OneDrive. Provide exactly one of contentBase64, contentText, or sourceUrl.

    Required paramsfilename
    Input schema
    {
      "type": "object",
      "properties": {
        "filename": {
          "type": "string",
          "description": "Filename to create."
        },
        "folderId": {
          "type": "string",
          "description": "Optional parent folder ID."
        },
        "folderPath": {
          "type": "string",
          "description": "Optional parent folder path."
        },
        "contentText": {
          "type": "string",
          "description": "UTF-8 text content to upload."
        },
        "contentBase64": {
          "type": "string",
          "description": "Base64-encoded binary content."
        },
        "sourceUrl": {
          "type": "string",
          "description": "Public/HTTPS URL the server fetches server-side (use INSTEAD of contentBase64 to avoid inlining large files)."
        },
        "contentType": {
          "type": "string",
          "description": "MIME type for the uploaded file."
        },
        "conflictBehavior": {
          "type": "string",
          "description": "Conflict behavior such as fail, replace, or rename."
        }
      },
      "required": [
        "filename"
      ],
      "additionalProperties": true
    }
  • getItemByPath

    read
  • createFolder

    write
  • deleteItem

    write
  • batchDownload

    read