sharepoint

Download and upload files between local machines and SharePoint or OneDrive via Microsoft Graph API.

1|Updated May 13, 2026
One-click install
npx skills add https://github.com/coolrobertj/Agency-Cowork --skill sharepoint-coolrobertj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sharepoint
Source: https://github.com/coolrobertj/Agency-Cowork/tree/main/skills/sharepoint-download/skills/sharepoint-download
Command: npx skills add https://github.com/coolrobertj/Agency-Cowork --skill sharepoint-coolrobertj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markitdown, and includes scripts (resource) components.

What problem does it solve? SharePoint MCP tools cap file transfers at 5 MB, making it impossible to move large documents between your local machine and SharePoint or OneDrive. This Skill bypasses that limit by resolving file metadata through the SharePoint MCP server and transferring bytes directly through the Microsoft Graph API with Azure CLI authentication. ## Core Features & Use Cases - Large File Downloads: Resolve driveId and itemId from any SharePoint URL, then download files of any size via the Graph API, with optional conversion to Markdown using markitdown for Knowledgebase storage. - Flexible Uploads: Upload local files to SharePoint document libraries or personal OneDrive using simple PUT for files up to 4 MB and resumable chunked upload sessions for files up to 250 GB, with configurable conflict behavior (rename, replace, fail). - Batch Operations: Process multiple SharePoint URLs in one run, resolving metadata in parallel and downloading sequentially to avoid token expiration. - Use Case: A program manager shares a 40 MB specification deck via a SharePoint link. Use this Skill to download it, convert it to Markdown, and file it under the correct Knowledgebase category automatically. ## Quick Start Download the file from this SharePoint link and add it to my Knowledgebase under Specifications.

Frequently Asked Questions about sharepoint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download a file from SharePoint using the Microsoft Graph API?

First resolve the file's driveId and itemId from its SharePoint URL using the SharePoint MCP metadata tool, then request an access token with Azure CLI and download via the Graph API /drives/{driveId}/items/{itemId}/content endpoint. This handles files of any size.

How do I upload a large file to SharePoint or OneDrive?

Use the upload-to-sharepoint.ps1 script with the target DriveId and folder ID. Files up to 4 MB use a single PUT request, while larger files automatically use a resumable upload session with 3.75 MB chunks, supporting up to 250 GB.

Why does the SharePoint MCP fail on files larger than 5 MB?

The SharePoint MCP createSmallTextFile and createSmallBinaryFile tools are capped at 5 MB. For larger files or local files on disk, transfer bytes directly through the Microsoft Graph API using the upload script instead.

Does SharePoint file download work on macOS?

Yes, but the PowerShell download script is Windows-only. On macOS, obtain a token with the Azure CLI, write it to a temp file, and download using python3 or curl against the same Graph API content endpoint.

Why does a downloaded SharePoint file open as garbled data?

Many Microsoft documents are encrypted by default through sensitivity labels or IRM, producing OLE2-wrapped files. Check the file header bytes after download; DRM stripping requires Office COM on Windows, otherwise open the file in a browser.