Skip to main content

Overview

Microsoft’s cloud storage service for storing and sharing files and folders. Through Langdock’s integration, you can access and manage OneDrive directly from your conversations.
Authentication: OAuth Category: Productivity & Collaboration Availability: All workspace plans

Available Actions

Search OneDrive

onedrive.search_onedrive
Searches for files in OneDrive by their title Requires Confirmation: No Parameters:
  • query (TEXT, Optional): The search term to find matching files
Output: Returns the operation result

Download file

onedrive.download_file
Downloads a file from OneDrive Requires Confirmation: No Parameters:
  • parent (OBJECT, Required): Parent object containing drive/site information
  • itemId (ID, Required): The unique identifier of the file to download
Output: Returns the operation result

Search files

onedrive.search_files
Searches files by name and returns detailed information about each matching file Requires Confirmation: No Parameters:
  • name (TEXT, Required): The name of the OneDrive item you want to find. The search is not case-insensitive and will return all items that match partially contain the input name. For example, you can search for specific documents like “Budget 2023”, “Project proposal”, or “Meeting notes”
Output: Returns the operation result

List available drives

onedrive.list_available_drives
Lists all accessible OneDrive locations Requires Confirmation: No Parameters: None Output: Returns the operation result

Download OneDrive file

onedrive.download_onedrive_file
Downloads a file from OneDrive and returns base64 content Requires Confirmation: No Parameters:
  • parent (OBJECT, Required): Parent object of the OneDrive file (e.g., driveId, userId, groupId, siteId)
  • itemId (ID, Required): The OneDrive item identifier
Output: Returns the operation result

List files in folder

onedrive.list_files_in_folder
Lists all files in a OneDrive folder recursively, including subfolders. Filters out images, videos, and spreadsheets similar to SharePoint/Google Drive integrations. Requires Confirmation: No Parameters:
  • folderId (ID, Required): The OneDrive folder ID to list files from (recursively).
  • parent (OBJECT, Required): Parent object containing drive information
Output: Returns the operation result

Create folder

onedrive.create_folder
Creates a new folder in OneDrive. Supports creating nested subfolders by providing a path with forward slashes. Requires Confirmation: No Parameters:
  • folderName (TEXT, Required): The name of the folder to create. To create nested folders, use forward slashes (e.g., “Projects/2024/Reports” creates three nested folders).
  • parentFolderId (ID, Optional): The id of the parent folder where the new folder should be created. If not provided, the folder is created at the root of the drive.
  • driveId (ID, Optional): The id of the OneDrive drive where the folder should be created. If not provided, uses the current user’s default drive.
Output: Returns the operation result

Get folder by name

onedrive.get_folder_by_name
Retrieves a folder from OneDrive by its name or path. Supports nested paths like “Parent/Child/Grandchild”. Requires Confirmation: No Parameters:
  • folderName (TEXT, Required): The name or path of the folder to find. Supports nested paths with forward slashes (e.g., “Projects/2024”).
  • parentFolderId (ID, Optional): The id of the parent folder to search within. If not provided, searches from the root of the drive.
  • driveId (ID, Optional): The id of the OneDrive drive to search in. If not provided, uses the current user’s default drive.
Output: Returns the operation result

Upload file

onedrive.upload_file
Uploads a file to OneDrive. Supports files up to 100MB. For files larger than 4MB, uses chunked upload. Requires Confirmation: Yes Parameters:
  • file (FILE, Required): The file to upload to OneDrive
  • folderId (ID, Optional): The ID of the folder to upload to. If not provided, uploads to the root of OneDrive. Use ‘Get folder by name’ action to find folder IDs.
  • fileName (TEXT, Optional): Custom name for the uploaded file. If not provided, uses the original file name.
Output: Returns the operation result

Check file access

onedrive.check_file_access
Checks if the current user has access to a specific file Requires Confirmation: No Parameters:
  • parent (OBJECT, Required): Parent object containing drive/site information
  • itemId (TEXT, Required): The unique identifier of the file you want to check access for in OneDrive
Output: Returns the operation result