Skip to main content

At a glance

  • Availability: Enabled by default.
  • Auth: OAuth 2.0.
  • Connection: A user authorizes the connection in the provider’s consent screen.
  • Scopes: Files.Read, Files.ReadWrite, Files.Read.All, Files.ReadWrite.All, offline_access.

Credentials

Set these per environment. See Connect an integration. With a managed OAuth app, Connect works without these variables; set them to use your own OAuth app instead.
VariableRequiredDescription
MICROSOFT_CLIENT_IDYesMicrosoft Azure App Client ID (shared with Outlook/Teams/SharePoint) Docs.
MICROSOFT_CLIENT_SECRETYesMicrosoft Azure App Client Secret Docs.

Tools

ToolAccessDescription
List FilesReadList files and folders in a OneDrive folder
Search FilesReadSearch for files and folders in OneDrive by name or content
Upload FileWriteUpload or update a file in OneDrive
Download FileReadDownload file content from OneDrive
Get FileReadGet metadata for a OneDrive file or folder
Create FolderWriteCreate a new folder in OneDrive
Delete FileWriteDelete a file or folder from OneDrive (moves it to the recycle bin)

Example prompts

  • Search for documents in OneDrive and summarize their content.
  • Show me the most recently modified files in my OneDrive.
  • Help me organize and manage files in my OneDrive storage.
  • Upload and backup a file to my OneDrive storage.