> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OneDrive

> Access and manage files in Microsoft OneDrive

## 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](/cloud/integrations).

With a managed OAuth app, Connect works without these variables; set them to use your own OAuth app instead.

| Variable                  | Required | Description                                                                                                                                                      |
| ------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `MICROSOFT_CLIENT_ID`     | Yes      | Microsoft Azure App Client ID (shared with Outlook/Teams/SharePoint) [Docs](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade). |
| `MICROSOFT_CLIENT_SECRET` | Yes      | Microsoft Azure App Client Secret [Docs](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade).                                    |

## Tools

| Tool          | Access | Description                                                         |
| ------------- | ------ | ------------------------------------------------------------------- |
| List Files    | Read   | List files and folders in a OneDrive folder                         |
| Search Files  | Read   | Search for files and folders in OneDrive by name or content         |
| Upload File   | Write  | Upload or update a file in OneDrive                                 |
| Download File | Read   | Download file content from OneDrive                                 |
| Get File      | Read   | Get metadata for a OneDrive file or folder                          |
| Create Folder | Write  | Create a new folder in OneDrive                                     |
| Delete File   | Write  | Delete 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.
