ワンクリックで
m365-files
SharePoint Files: Upload, download, copy, move, rename, delete, and search files in SharePoint document libraries.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
SharePoint Files: Upload, download, copy, move, rename, delete, and search files in SharePoint document libraries.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
M365 CLI: Auth, config, global flags, and site/drive discovery. Prerequisite for all m365-* skills.
Microsoft 365 Mail: Read, send, reply to, and delete email messages; manage mail folders.
SharePoint Docs: Create, co-edit, convert, and share .md/.txt/.docx documents collaboratively in chat.
SharePoint Lists: Create and manage metadata lists, list items, and columns.
Microsoft 365 Calendar: Create, read, update, and delete events; RSVP to invitations; access shared calendars.
| name | m365-files |
| version | 0.1.0 |
| description | SharePoint Files: Upload, download, copy, move, rename, delete, and search files in SharePoint document libraries. |
| metadata | {"openclaw":{"category":"productivity","requires":{"bins":["m365","pandoc"],"skills":["m365-shared"]},"cliHelp":"m365 files --help"}} |
Complete auth setup from m365-shared SKILL.md, then discover your site and drive IDs:
m365 sites list | jq '.data[] | {id, displayName}'
m365 drives list --site <site-id> | jq '.data[] | {id, name}'
m365 config set --site <site-id> --drive <drive-id>
m365 files list [--site <id>] [--drive <id>] [--path <folder-path>]
# Examples
m365 files list # Root of default drive
m365 files list --path /Documents # Subfolder
m365 files list --path "/Shared Documents"
Output: array of DriveItem objects with id, name, size, webUrl, file/folder.
m365 files get <item-id> [--site <id>] [--drive <id>]
m365 files get 01ABC123...
m365 files upload <local-path> [--site <id>] [--drive <id>] [--remote-path <path>]
m365 files upload ./report.xlsx --remote-path /Documents/report.xlsx
m365 files upload ./data.csv # Uploads to drive root as data.csv
/drives/{id}/root:{remotePath}:/contentm365 files download <item-id> [--site <id>] [--drive <id>] [--output <local-path>]
m365 files download 01ABC123... --output ./downloaded.xlsx
m365 files download 01ABC123... # Saves with original filename
m365 files copy <item-id> --dest-path <path> [--dest-drive <id>] [--name <new-name>] [--site <id>] [--drive <id>]
m365 files copy 01ABC123... --dest-path /Archive
m365 files copy 01ABC123... --dest-path /Archive --name report-copy.xlsx
m365 files copy 01ABC123... --dest-path /Other --dest-drive 01DEF456...
m365 files move <item-id> --dest-path <path> [--dest-drive <id>] [--site <id>] [--drive <id>]
m365 files move 01ABC123... --dest-path /Archive
m365 files rename <item-id> --name <new-name> [--site <id>] [--drive <id>]
m365 files rename 01ABC123... --name renamed-report.xlsx
m365 files delete <item-id> [--site <id>] [--drive <id>]
m365 files delete 01ABC123...
Deletes to the site recycle bin (recoverable for 30–93 days).
m365 files search <query> [--site <id>] [--drive <id>]
m365 files search "quarterly report"
m365 files search budget.xlsx
item_id=$(m365 files search "budget 2025" | jq -r '.data[0].id')
m365 files download "$item_id" --output ./budget-2025.xlsx
m365 files upload ./contract.pdf --remote-path /Legal/contract.pdf \
| jq -r '.data.id'
m365 files list --path /Temp | jq -r '.data[] | select(.name | startswith("tmp_")) | .id' \
| xargs -I{} m365 files delete {}
All commands wrap the MS Graph Drive API:
GET /drives/{driveId}/root/children — list rootGET /drives/{driveId}/root:{path}:/children — list folderGET /drives/{driveId}/items/{itemId} — get metadataPUT /drives/{driveId}/root:{path}:/content — uploadGET @microsoft.graph.downloadUrl from item metadata — downloadPOST /drives/{driveId}/items/{itemId}/copy — copyPATCH /drives/{driveId}/items/{itemId} — move/renameDELETE /drives/{driveId}/items/{itemId} — deleteGET /drives/{driveId}/root/search(q='...') — searchm365 files --help
m365 files upload --help
m365 files copy --help