Microsoft OneDrive integration
Microsoft OneDrive API via Microsoft Graph for cloud file storage and sharing. Upload, download, and manage files and folders, share items, search content, and handle permissions for personal and business OneDrive accounts.
Say what should happen.
The workflow builds itself.
Common Microsoft OneDrive use cases
- automate item management
- automate permission management
- get item programmatically
- list children programmatically
- automate drive management
- automate children management
- copy item programmatically
- get delta programmatically
- get drive programmatically
- list drive programmatically
What you can do with Microsoft OneDrive
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Item, 6 operations
copy_itemCopy itemPOSTCreate a copy of a drive item in a new location. This is an asynchronous operation.delete_itemDelete itemDELETEDelete a file or folder by its item ID. Deleted items are moved to the recycle bin.get_item_by_idGet item by idGETGet metadata for a specific drive item by its unique IDget_item_by_pathGet item by pathGETGet metadata for a drive item by its file path relative to the rootsearch_itemsSearch itemsGETSearch for files and folders matching a query string across the entire driveupdate_itemUpdate itemPATCHUpdate properties of a drive item such as renaming or moving it to a different folder
Permission, 3 operations
delete_permissionDelete permissionDELETERemove a sharing permission from a drive itemlist_permissionsList permissionsGETList the sharing permissions configured on a drive itemupdate_permissionUpdate permissionPATCHUpdate an existing permission on a drive item, for example to change the granted roles
Children, 2 operations
list_children_by_idList children by idGETList the children (files and folders) of a specific folder by its IDlist_children_by_pathList children by pathGETList the children (files and folders) of a folder specified by its path
Drive, 2 operations
get_driveGet driveGETGet the current user's default OneDrive drive metadata including quota and owner informationlist_drivesList drivesGETList all drives available to the current user including personal OneDrive and any associated document libraries
Delta, 1 operation
get_deltaGet deltaGETTrack changes to files and folders from a previous state using a delta token. On first call, returns full listing with a delta token for subsequent calls.
File, 1 operation
download_fileDownload fileGETDownload the contents of a file by its item ID. Returns a 302 redirect to a pre-authenticated download URL.
Folder, 1 operation
create_folderCreate folderPOSTCreate a new folder inside a specified parent folder
Invitation, 1 operation
invite_usersInvite usersPOSTSend a sharing invitation to one or more users for a drive item, granting specified permissions
Item preview, 1 operation
get_item_previewGet item previewPOSTGet a short-lived embeddable URL that can be used to render a preview of the item in an iframe
Recent file, 1 operation
list_recent_filesList recent filesGETList files recently accessed or modified by the current user
Root children, 1 operation
list_root_childrenList root childrenGETList files and folders in the root of the user's OneDrive
Shared with me, 1 operation
list_shared_with_meList shared with meGETList files and folders that have been shared with the current user
Sharing link, 1 operation
create_sharing_linkCreate sharing linkPOSTCreate a sharing link for a drive item to share with others
Small file, 1 operation
upload_small_fileUpload small filePUTUpload a file (up to 4MB) to a specific folder. For larger files use create_upload_session.
Special folder, 1 operation
get_special_folderGet special folderGETGet a special folder by its known name (e.g., documents, photos, cameraroll, approot, music)
Thumbnail, 1 operation
get_thumbnailsGet thumbnailsGETRetrieve thumbnail images for a drive item (small, medium, large sizes)
Upload session, 1 operation
create_upload_sessionCreate upload sessionPOSTCreate an upload session for uploading large files (up to 250GB) in byte range chunks
Use Microsoft OneDrive from Claude Code, Cursor or Codex
Connect Microsoft OneDrive in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Microsoft OneDrive operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Microsoft OneDrive
- Create your workspace
Sign up free. Nothing to install.
- Connect Microsoft OneDrive once
Add your Microsoft OneDrive connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Microsoft OneDrive integration FAQ
What can you do with the Microsoft OneDrive integration?
LiveContext exposes 26 operations on Microsoft OneDrive, covering item, permission, children and drive. Common uses include automate item management, automate permission management and get item programmatically.
