AGENT SKILL

onedrive

Manage OneDrive files and folders via Microsoft Graph. Upload, download, and share files.

License 许可
MIT
最近更新
2026-04-05
Stars
★ 7
Forks
1

01 前言 Front Matter

name
onedrive
metadata
{ "clawdbot": { "emoji": "☁️", "requires": { "env": [ "MICROSOFT_ACCESS_TOKEN" ] } } }
description
Manage OneDrive files and folders via Microsoft Graph. Upload, download, and share files.

02 资源文件 1

03 SKILL.md 正文

OneDrive

Microsoft cloud storage.

Environment

export MICROSOFT_ACCESS_TOKEN="xxxxxxxxxx"

List Root Files

curl "https://graph.microsoft.com/v1.0/me/drive/root/children" -H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN"

Upload File

curl -X PUT "https://graph.microsoft.com/v1.0/me/drive/root:/filename.txt:/content" \
  -H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN" \
  -H "Content-Type: text/plain" \
  --data-binary @localfile.txt

Download File

curl "https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/content" \
  -H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN" -o downloaded.txt

Links

04 同仓库更多 Skills