OneDrive
Create, upload, and list files
OneDrive is Microsoft’s cloud storage and file synchronization service that allows users to securely store, access, and share files across devices. Integrated deeply into the Microsoft 365 ecosystem, OneDrive supports seamless collaboration, version control, and real-time access to content across teams and organizations.
Learn how to integrate the OneDrive tool in Sim to automatically pull, manage, and organize your cloud files within your workflows. This tutorial walks you through connecting OneDrive, setting up file access, and using stored content to power automation. Ideal for syncing essential documents and media with your agents in real time.
With OneDrive, you can:
- Store files securely in the cloud: Upload and access documents, images, and other files from any device
- Organize your content: Create structured folders and manage file versions with ease
- Collaborate in real time: Share files, edit them simultaneously with others, and track changes
- Access across devices: Use OneDrive from desktop, mobile, and web platforms
- Integrate with Microsoft 365: Work seamlessly with Word, Excel, PowerPoint, and Teams
- Control permissions: Share files and folders with custom access settings and expiration controls
In Sim, the OneDrive integration enables your agents to directly interact with your cloud storage. Agents can upload new files to specific folders, retrieve and read existing files, and list folder contents to dynamically organize and access information. This integration allows your agents to incorporate file operations into intelligent workflows — automating document intake, content analysis, and structured storage management. By connecting Sim with OneDrive, you empower your agents to manage and use cloud documents programmatically, eliminating manual steps and enhancing automation with secure, real-time file access.
Usage Instructions
Integrate OneDrive functionality to manage files and folders. Upload new files, create new folders, and list contents of folders using OAuth authentication. Supports file operations with custom MIME types and folder organization.
Tools
onedrive_upload
Upload a file to OneDrive
Input
Parameter | Type | Required | Description |
---|---|---|---|
fileName | string | Yes | The name of the file to upload |
content | string | Yes | The content of the file to upload |
folderSelector | string | No | Select the folder to upload the file to |
manualFolderId | string | No | Manually entered folder ID (advanced mode) |
Output
Parameter | Type | Description |
---|---|---|
success | boolean | Whether the file was uploaded successfully |
file | object | The uploaded file object with metadata including id, name, webViewLink, webContentLink, and timestamps |
onedrive_create_folder
Create a new folder in OneDrive
Input
Parameter | Type | Required | Description |
---|---|---|---|
folderName | string | Yes | Name of the folder to create |
folderSelector | string | No | Select the parent folder to create the folder in |
manualFolderId | string | No | Manually entered parent folder ID (advanced mode) |
Output
Parameter | Type | Description |
---|---|---|
success | boolean | Whether the folder was created successfully |
file | object | The created folder object with metadata including id, name, webViewLink, and timestamps |
onedrive_list
List files and folders in OneDrive
Input
Parameter | Type | Required | Description |
---|---|---|---|
folderSelector | string | No | Select the folder to list files from |
manualFolderId | string | No | The manually entered folder ID (advanced mode) |
query | string | No | A query to filter the files |
pageSize | number | No | The number of files to return |
Output
Parameter | Type | Description |
---|---|---|
success | boolean | Whether files were listed successfully |
files | array | Array of file and folder objects with metadata |
nextPageToken | string | Token for retrieving the next page of results (optional) |
Notes
- Category:
tools
- Type:
onedrive