El catálogo/OneDrive

OneDrive

app.microsoft.onedrive

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

OAuth 2productivityLeer el código↗
Versión1.0.2
Categoríaproductivity
AutenticaciónOAuth 2
Herramientas20
Transportestdio
LicenciaMIT
01

Qué hace

La aplicación, en sus propias palabras.

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

onedrivefilesmicrosoftstoragedriveoffice365sharepoint
02

Herramientas

20 herramientas que el agente puede llamar.

Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.

  • 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

Autenticación y permisos

Qué pide.

Declarado en el manifiesto y por adelantado. La aplicación no puede alcanzar nada que no haya pedido aquí.

Permisos

openidprofileemailoffline_accessUser.ReadFiles.ReadWrite.AllSites.Read.All

Secretos de sistema

CLIENT_IDCLIENT_SECRETREDIRECT_URI

Secretos de instalación

ACCESS_TOKENREFRESH_TOKENEMAILEXPIRY_DATE

Seguir leyendo

El manifiesto y el código de OneDrive están en el repositorio, junto al resto de apps.

Leer el código↗Volver al catálogo→

OneDrive · Agent Apps