OneDrive integration for AI agents
Search, download, and upload files on OneDrive
Connect OneDrive to Langdock and use it in chat, in agents and in workflows.
7 actions
OneDrive actions
Each action is one step an agent or workflow can run in OneDrive.
- Create folder
Creates a folder in OneDrive, or returns it with alreadyExisted: true if it already exists. Nested paths with forward slashes are supported: existing folders are reused and missing ones created.
- Download OneDrive file
Downloads a file from OneDrive and returns base64 content.
- Get folder by name
Retrieves a folder from OneDrive by its name or path. Supports nested paths like "Parent/Child/Grandchild".
- List available drives
Lists all accessible OneDrive locations.
- List files in OneDrive folder
Lists files and subfolders in a OneDrive folder. Always returns direct child folders alongside files for nested folder navigation. Enable includeSubfolders to recursively list all files within subfolders.
- Search files
Searches for files by name in a specific drive.
- Upload file
Uploads a file to OneDrive. Supports files up to 100MB. For files larger than 4MB, uses chunked upload.
Setup and permissions
An action can ask for your confirmation before it runs. In an agent, each action is set to “Always allow” or “Needs approval”.