Skip to main content
Microsoft 365

OneDrive

Manage OneDrive files and folders from the agent.

OneDrive

Lets the agent find, download, upload, move and delete files and folders on OneDrive. It requires a Microsoft 365 connection configured in the workspace.

The available operations

When you add this tool, choose which operations the agent is allowed to perform.


Find files

Searches OneDrive for files and folders by text.

ParameterRequiredDefaultWhat it is
QueryYesThe text to search for in the files and folders
Maximum resultsNo10How many items to return at most
Order byNolastModifiedDateTimeThe sort field: name, size or lastModifiedDateTime

Get a file

Returns one file's or folder's metadata by its ID.

ParameterRequiredDefaultWhat it is
Item IDYesThe unique ID of the file or folder

Download a file

Returns a OneDrive file's download URL.

ParameterRequiredDefaultWhat it is
Item IDYesThe unique ID of the file to download

Upload a file

Uploads a file to OneDrive. It handles files up to 4 MB.

ParameterRequiredDefaultWhat it is
File nameYesThe file's name in OneDrive (e.g. report.pdf)
Destination folderNo/The destination folder's path in OneDrive (e.g. /Documents). Default: the root
Content (base64)NoThe file's content, base64-encoded. Omit it to create an empty file
MIME typeNoapplication/octet-streamThe file's type (e.g. text/plain, application/pdf)
On conflictNorenameWhat happens when a file of the same name exists: rename, replace or fail

Move a file

Moves or renames a file or folder in OneDrive.

ParameterRequiredDefaultWhat it is
Item IDYesThe unique ID of the file or folder to move or rename
Destination folder IDNoThe destination folder's ID. Omit it to rename only
New nameNoThe file's or folder's new name. Omit it to move only

At least one of "Destination folder ID" or "New name" has to be given.


Delete a file

Removes a file or folder from OneDrive.

ParameterRequiredDefaultWhat it is
Item IDYesThe unique ID of the file or folder to delete