Skip to main content
Server path: /onedrive | Type: Application | PCID required: Yes File storage and sharing

Tools

ToolDescription
onedrive_list_itemsList files and folders in OneDrive
onedrive_get_itemGet details about a specific file or folder by ID in OneDrive
onedrive_get_item_by_pathGet details about a specific file or folder by path in OneDrive
onedrive_create_folderCreate a new folder in OneDrive
onedrive_rename_itemRename a file or folder in OneDrive
onedrive_delete_itemDelete a file or folder in OneDrive
onedrive_copy_itemCopy a file or folder to a new location in OneDrive
onedrive_move_itemMove a file or folder to a new location in OneDrive
onedrive_upload_fileUpload a file to OneDrive. Provide either fileUrl (to upload from a URL) or fileContent (base64 encoded content), but not both. NOTE: Newly uploaded files may not appear in search results for several minutes due to OneDrive indexing delays. Use onedrive_list_children or onedrive_get_item_by_path for immediate access.
onedrive_download_fileDownload a file from OneDrive. IN WORKFLOWS: Files are automatically saved to Node Outputs - no manual save step needed. By default, automatically extracts text from supported document formats (PDF, DOCX, PPTX, XLSX) and includes it in the response. Text files (TXT, CSV) do not need extraction. STREAMING IS PREFERRED: Use stream=true (default) to get a downloadUrl for efficient downloading of large files. Only use stream=false for small files (<2MB) that need immediate processing. NEVER use this tool for files that are supported by the microsoft excel, powerpoint, and word tools.
onedrive_search_itemsSearch for files and folders in OneDrive. Two search modes: (1) FUZZY SEARCH (default): Full-text search across filenames and content. Without folderId, searches recursively through entire OneDrive. With folderId, only returns direct children of that folder (not recursive into subfolders). (2) EXACT MATCH: Find files with an exact filename, only searches direct children of the folder (not recursive). NOTE: Fuzzy search may not find recently uploaded files for several minutes due to OneDrive indexing delays. Use exact match with folderId for immediate results, or use onedrive_list_children.
onedrive_get_shared_itemsGet items shared with you in OneDrive
onedrive_create_sharing_linkCreate a sharing link for a file or folder in OneDrive
onedrive_create_fileCreate a new file in OneDrive
onedrive_list_folder_contentsList folder contents recursively or get file details
onedrive_filter_files_by_extensionFilter files by extension in a folder and its subfolders
onedrive_extract_msg_filesExtract and parse .msg files from a OneDrive folder

onedrive_list_items

List files and folders in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
pathstringNo""Path to the folder to list, default is root
pageSizenumberNo25Number of items to list, default is 25

onedrive_get_item

Get details about a specific file or folder by ID in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
itemIdstringYesID of the file or folder to get

onedrive_get_item_by_path

Get details about a specific file or folder by path in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
pathstringYesPath to the file or folder to get

onedrive_create_folder

Create a new folder in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
parentPathstringNoPath to the parent folder to create the folder in, default is root
folderNamestringYesName of the folder to create

onedrive_rename_item

Rename a file or folder in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
itemIdstringYesID of the file or folder to rename
newNamestringYesNew name of the file or folder

onedrive_delete_item

Delete a file or folder in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
itemIdstringYesID of the file or folder to delete

onedrive_copy_item

Copy a file or folder to a new location in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
itemIdstringYesID of the file or folder to copy
destinationPathstringYesPath to the destination folder
newNamestringNoNew name of the copied file or folder

onedrive_move_item

Move a file or folder to a new location in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
itemIdstringYesID of the file or folder to move
destinationPathstringYesPath to the destination folder
newNamestringNoNew name of the moved file or folder

onedrive_upload_file

Upload a file to OneDrive. Provide either fileUrl (to upload from a URL) or fileContent (base64 encoded content), but not both. NOTE: Newly uploaded files may not appear in search results for several minutes due to OneDrive indexing delays. Use onedrive_list_children or onedrive_get_item_by_path for immediate access. Parameters:
ParameterTypeRequiredDefaultDescription
parentPathstringYesPath to the parent folder to upload the file to
fileNamestringYesName of the file to upload
fileContentstringNoBase64 encoded content of the file to upload. Required if fileUrl is not provided.
fileUrlstringNoURL of the file to upload. Required if fileContent is not provided.

onedrive_download_file

Download a file from OneDrive. IN WORKFLOWS: Files are automatically saved to Node Outputs - no manual save step needed. By default, automatically extracts text from supported document formats (PDF, DOCX, PPTX, XLSX) and includes it in the response. Text files (TXT, CSV) do not need extraction. STREAMING IS PREFERRED: Use stream=true (default) to get a downloadUrl for efficient downloading of large files. Only use stream=false for small files (<2MB) that need immediate processing. NEVER use this tool for files that are supported by the microsoft excel, powerpoint, and word tools. Parameters:
ParameterTypeRequiredDefaultDescription
itemIdstringYesID of the file to download
streambooleanNotrueRECOMMENDED: true (default). Returns a downloadUrl + auth headers for efficient streaming. Set to false only for small files (<2MB) requiring immediate base64 content.
extractTextbooleanNotrueAutomatically extracts text from supported formats (PDF, DOCX, PPTX, XLSX) and includes it in the response. Text files do not need extraction. Set to false to skip extraction.

onedrive_search_items

Search for files and folders in OneDrive. Two search modes: (1) FUZZY SEARCH (default): Full-text search across filenames and content. Without folderId, searches recursively through entire OneDrive. With folderId, only returns direct children of that folder (not recursive into subfolders). (2) EXACT MATCH: Find files with an exact filename, only searches direct children of the folder (not recursive). NOTE: Fuzzy search may not find recently uploaded files for several minutes due to OneDrive indexing delays. Use exact match with folderId for immediate results, or use onedrive_list_children. Parameters:
ParameterTypeRequiredDefaultDescription
querystringYesSearch query - for fuzzy search this matches filenames and content; for exact match this must be the exact filename
folderIdstringNoFolder ID to limit search to. IMPORTANT: Only returns direct children of this folder (not recursive into subfolders). If not provided, fuzzy search is recursive through entire OneDrive. Get folder IDs from onedrive_list_items or onedrive_list_children.
exactMatchbooleanNofalseIf true, find files with exact filename match (direct children only, not recursive). If false (default), performs fuzzy full-text search.
pageSizenumberNo25Number of items to return, default is 25

onedrive_get_shared_items

Get items shared with you in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
pageSizenumberNo25Number of items to list

Create a sharing link for a file or folder in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
itemIdstringYesID of the file or folder to create a sharing link for
typestringNo"view"Type of sharing link to create

onedrive_create_file

Create a new file in OneDrive Parameters:
ParameterTypeRequiredDefaultDescription
parentPathstringYesPath to the parent folder to create the file in
fileNamestringYesName of the file to create
contentstringNo""Content of the file to create, default is empty

onedrive_list_folder_contents

List folder contents recursively or get file details Parameters:
ParameterTypeRequiredDefaultDescription
pathstringNoPath to the folder or file to list, defaults to root if not provided
maxDepthnumberNo3Maximum depth for recursive folder listing, defaults to 3

onedrive_filter_files_by_extension

Filter files by extension in a folder and its subfolders Parameters:
ParameterTypeRequiredDefaultDescription
folderPathstringYesPath to the folder to search in. Empty string means root
extensionstringNo".msg"File extension to filter by (e.g., “.pdf”, “.docx”)
maxDepthnumberNo3Maximum depth for recursive folder search, defaults to 3
maxResultsnumberNo100Maximum number of results to return, defaults to 100

onedrive_extract_msg_files

Extract and parse .msg files from a OneDrive folder Parameters:
ParameterTypeRequiredDefaultDescription
folderPathstringYesPath to the folder containing .msg files
includeAttachmentsbooleanNofalseInclude attachments in the response, default is false, if true, the response will include the attachments
maxResultsnumberNo100Maximum number of .msg files to process