The catalogue/OneDrive

OneDrive

app.microsoft.onedrive

Browse, upload, organize, and share OneDrive files via Microsoft Graph

OAuth 2productivityRead the source↗
Version1.0.2
Categoryproductivity
AuthOAuth 2
Tools20
Transportstdio
LicenceMIT
01

What it does

The app, in its own words.

Microsoft OneDrive file management — browse, upload, download, organize, and share files via Microsoft Graph API.

onedrivefilesmicrosoftstoragedriveoffice365sharepoint
02

Tools

20 tools the agent can call.

Every one is declared with typed parameters and returns structured results, so the host can render them instead of narrating them.

  • convert-fileConvert a OneDrive document (Word, Excel, PowerPoint, and other supported types) to PDF and save it locally. Files above 50 MB are refused.
  • copy-itemCopy a OneDrive file or folder to another folder. Waits for the copy to finish before returning. Specify the item with itemId or path, and the destination with destinationFolderId or destinationPath; with neither destination, the copy is placed at the drive root.
  • create-folderCreate a new folder in OneDrive. Address the containing folder with parentId or parentPath; with neither, the folder is created at the drive root.
  • create-share-linkCreate a sharing link for a OneDrive item, with a chosen permission level and audience.
  • delete-itemDelete a OneDrive file or folder. The item moves to the recycle bin, but this app cannot restore it.
  • download-fileDownload a OneDrive file and save it to the local filesystem. Files above 50 MB are refused.
  • get-drive-infoGet information about the OneDrive account, including storage quota and usage.
  • get-file-contentRead the contents of a text-based OneDrive file inline, without saving it to disk. Limited to 1 MB.
  • get-itemGet metadata for a single OneDrive file or folder, addressed by itemId or by path.
  • invite-peopleShare a OneDrive item with specific people by email, granting read or write access.
  • list-itemsList files and folders inside a OneDrive folder. Defaults to the drive root. Address the folder by itemId or by path.
  • list-permissionsList everyone and every sharing link that currently has access to a OneDrive item.
  • list-recentList OneDrive files this account accessed recently, most recent first.
  • list-shared-with-meList OneDrive files and folders that other people have shared with this account. Listing only: a shared item lives on the drive of the person who shared it, and every other tool in this app addresses /me/drive, so the IDs returned here cannot be passed to get-item, download-file, or any other tool. Use webUrl to open a shared item.
  • list-versionsList the version history of a OneDrive file. Use this to recover an earlier version after an unwanted overwrite.
  • move-itemMove a OneDrive file or folder into a different folder. Specify the item with itemId or path, and the destination with destinationFolderId or destinationPath; with neither destination, the item is moved to the drive root.
  • remove-permissionRevoke a sharing permission or link on a OneDrive item. Use list-permissions to find the permission ID.
  • rename-itemRename a OneDrive file or folder without moving it.
  • search-itemsSearch OneDrive for files and folders matching a free-text query.
  • upload-fileUpload a local file to OneDrive. Files below 4 MB upload directly; larger files use a chunked upload session — a failed chunk aborts the whole upload rather than resuming. Overwrites an existing file with the same name.
03

Auth and permissions

What it asks for.

Declared in the manifest, in advance. The app cannot reach anything it did not ask for here.

Scopes

openidprofileemailoffline_accessUser.ReadFiles.ReadWrite.AllSites.Read.All

System secrets

CLIENT_IDCLIENT_SECRETREDIRECT_URI

Installation secrets

ACCESS_TOKENREFRESH_TOKENEMAILEXPIRY_DATE

Reading further

The manifest and the source for OneDrive live in the repository, alongside the other apps.

Read the source↗Back to the catalogue→

OneDrive · Agent Apps