# OneDrive AI integration on Definable

> OneDrive is Microsoft’s cloud storage solution enabling users to store, sync, and share files across devices, offering offline access, real-time collaboration, and enterprise-grade security

## What this connects

OneDrive is Microsoft’s cloud storage solution enabling users to store, sync, and share files across devices, offering offline access, real-time collaboration, and enterprise-grade security

Vendor: https://www.microsoft.com/en-in/microsoft-365/onedrive/online-cloud-storage/

## Tools available

**60** tools available. First 12:

- `ONE_DRIVE_CHECKIN_ITEM` — Check In Drive Item — Tool to check in a checked out driveItem resource, making the version of the document available to others. Use when you need to check in a file that was previously checked out in OneDrive or SharePoint.
- `ONE_DRIVE_CHECKOUT_ITEM` — Checkout Drive Item — Tool to check out a driveItem to prevent others from editing it and make your changes invisible until checked in. Use when you need to lock a file for exclusive editing in SharePoint or OneDrive.
- `ONE_DRIVE_COPY_ITEM` — Copy Item — Tool to copy a DriveItem (file or folder) to a new location asynchronously. Use when you need to duplicate an item, optionally renaming it or specifying a different parent folder. The operation is asynchronous; the response provides a URL to monitor the copy progress. Do not assume the copy is complete immediately; verify via ONE_DRIVE_GET_ITEM or by listing the destination, especially for large folder trees.
- `ONE_DRIVE_CREATE_ITEM_PERMISSION` — Create Drive Item Permission — Tool to create a new permission on a OneDrive drive item. Use when you need to grant application or SharePoint group permissions to a file or folder. This endpoint supports creating application permissions and SharePoint site group permissions only.
- `ONE_DRIVE_CREATE_LINK` — Create Sharing Link — Tool to create a sharing link for a DriveItem (file or folder) by its unique ID. Use when you need to generate a shareable link for an item in OneDrive or SharePoint.
- `ONE_DRIVE_DELETE_ITEM` — Delete Item — Tool to delete a DriveItem (file or folder) by its unique ID from the authenticated user's OneDrive. Use when you need to remove an item from OneDrive. This action moves the item to the recycle bin, not permanently deleting it; storage quota is not freed until the recycle bin is emptied. Bulk deletions can trigger 429 (rate limit) or 5xx responses — limit concurrency and use exponential backoff.
- `ONE_DRIVE_DELETE_ITEM_PERMANENTLY` — Permanently Delete Drive Item — Tool to permanently delete a driveItem by its ID without moving it to the recycle bin. Use when you need to irreversibly remove a file or folder from OneDrive or SharePoint. This action cannot be undone.
- `ONE_DRIVE_DELETE_ITEM_PERMISSION` — Delete Drive Item Permission — Tool to delete a permission from a drive item. Use when you need to revoke sharing access to a file or folder. Only non-inherited sharing permissions can be deleted.
- `ONE_DRIVE_DELETE_SHARE_PERMISSION` — Delete Shares Permission — Tool to delete the permission navigation property for a shared drive item. Use when you need to remove a sharing link permission. This effectively revokes access via the specific share link.
- `ONE_DRIVE_DISCARD_CHECKOUT` — Discard Checkout — Tool to discard the checkout of a driveItem, releasing it and discarding any changes made while checked out. Use when you need to cancel a checkout and revert changes on a file in SharePoint or OneDrive.
- `ONE_DRIVE_DOWNLOAD_FILE` — Download a file — Downloads a file from a user's OneDrive using its item ID, which must refer to a file and not a folder. Response contains a content object with fields: s3url (URL to fetch raw file bytes), mimetype, and name; raw file data is not returned directly. Parsing content from Excel, Word, PDF, or other formats requires additional tooling. The response also includes attachment.s3key, required when passing this file to downstream tools such as OUTLOOK_SEND_EMAIL or OUTLOOK_CREATE_DRAFT.
- `ONE_DRIVE_DOWNLOAD_FILE_BY_PATH` — Download file by path — Downloads the contents of a file from OneDrive by its path. The API returns a 302 redirect to a pre-authenticated download URL. Use when you know the file path but not the item ID.

## Auth

Auth schemes: `OAUTH2`, `S2S_OAUTH2`. Managed by Definable: `OAUTH2` — no client credentials required from the user.

## How agents use OneDrive

Inside a Definable workflow, OneDrive is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → OneDrive** — the Researcher (GPT-5.5) pulls context from OneDrive (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → OneDrive** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into OneDrive (create record, post message, draft email).
- **Designer / Engineer → Distributor → OneDrive** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via OneDrive (attach file, open PR comment, post status).

The Verifier checks every OneDrive call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- file management & storage — https://definable.ai/apps/category/file-management-&-storage/

## Related

- HTML page: https://definable.ai/apps/one_drive/
- Same category (file management & storage): https://definable.ai/apps/category/file-management-&-storage/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
