data
Microsoft OneDrive MCP, CLI, and Lua Integration for AI Agents
Microsoft OneDrive integration docs for AI agents: MCP gateway setup, Microsoft OneDrive CLI commands, Lua API reference, credentials, and function schemas.Microsoft OneDrive for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
one-drive.onedrive_list_files | Read read | 2 | List files and folders in the root of the user's OneDrive. Returns item names, IDs, sizes, and metadata. Use the item ID with onedrive_get_file or onedrive_download_file for details or content. |
one-drive.onedrive_get_file | Read read | 1 | Get detailed metadata for a specific file or folder in OneDrive by its item ID. Returns name, size, dates, MIME type, and download URL. |
one-drive.onedrive_get_drive | Read read | 0 | Get metadata for the signed-in user's default OneDrive, including drive ID, owner, quota, and drive type. |
one-drive.onedrive_list_children | Read read | 3 | List files and folders under the root folder or under a specific OneDrive parent item. |
one-drive.onedrive_create_folder | Write write | 3 | Create a folder in OneDrive using the Microsoft Graph DriveItem children endpoint. |
one-drive.onedrive_update_item | Write write | 4 | Update OneDrive file or folder metadata. Use name to rename, parent_reference to move, or payload for official Graph fields. |
one-drive.onedrive_delete_item | Write write | 1 | Delete a OneDrive file or folder by drive item ID. |
one-drive.onedrive_copy_item | Write write | 5 | Copy a OneDrive file or folder asynchronously. Optionally provide a new name and parentReference. |
one-drive.onedrive_upload_file | Write write | 3 | Upload a file to OneDrive. Specify the destination path and file content. Creates the file if it does not exist, or replaces it if it does. Supports files up to 4 MB via the simple upload API. |
one-drive.onedrive_download_file | Read read | 1 | Download a file's content from OneDrive by its drive item ID. Returns the raw file content. Use onedrive_list_files or onedrive_get_file to find the item ID. |
one-drive.onedrive_list_shared | Read read | 2 | List files and folders that have been shared with the current user. Returns item names, IDs, sizes, and metadata for shared content. |
one-drive.onedrive_search | Read read | 1 | Search files and folders in the signed-in user's OneDrive. |
one-drive.onedrive_delta | Read read | 1 | List changes in the signed-in user's OneDrive. Continue with @odata.nextLink or @odata.deltaLink values returned by Graph. |
one-drive.onedrive_list_thumbnails | Read read | 1 | List thumbnail sets for a OneDrive file or folder item. |
one-drive.onedrive_create_sharing_link | Write write | 6 | Create or return a sharing link for a OneDrive file or folder. |
one-drive.onedrive_list_permissions | Read read | 1 | List sharing permissions for a OneDrive file or folder. |
one-drive.onedrive_delete_permission | Write write | 2 | Delete a sharing permission from a OneDrive file or folder. |
one-drive.onedrive_get_current_user | Read read | 0 | Get the profile of the currently authenticated Microsoft user. Returns display name, email, job title, and other profile details. |
one-drive.onedrive_api_get | Read read | 2 | Call a relative Microsoft Graph GET path such as "/me/drive". Absolute URLs are rejected. |
one-drive.onedrive_api_post | Write write | 2 | Call a relative Microsoft Graph POST path with a JSON body. Absolute URLs are rejected. |
one-drive.onedrive_api_patch | Write write | 2 | Call a relative Microsoft Graph PATCH path with a JSON body. Absolute URLs are rejected. |
one-drive.onedrive_api_delete | Write write | 2 | Call a relative Microsoft Graph DELETE path. Absolute URLs are rejected. |