one-drive-automation
Helps your agent automate file management on OneDrive. It can search, upload, download, share, and manage folders and permissions.
What it does
This tool helps you manage your files in OneDrive. You can search, download, upload, share files, and organize folders.
When to use it
- ✓When you need to find a specific file.
- ✓When you want to upload a file to OneDrive.
- ✓When you need to share a document with someone.
Example of what to ask your AI
“Search for sales reports from 2023 in my OneDrive.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
It uses a system called Rube MCP to connect to your OneDrive. First, it checks if the connection is active and then uses specific tools to perform the action you requested, like finding a file or creating a sharing link.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill one-drive-automationOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/one-drive-automation/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
OneDrive Automation via Rube MCP
Automate OneDrive operations including file upload/download, search, folder management, sharing links, permissions management, and drive browsing through Composio's OneDrive toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active OneDrive connection via
RUBE_MANAGE_CONNECTIONSwith toolkitone_drive - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitone_drive - If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Search and Browse Files
When to use: User wants to find files or browse folder contents in OneDrive
Tool sequence:
ONE_DRIVE_GET_DRIVE- Verify drive access and get drive details [Prerequisite]ONE_DRIVE_SEARCH_ITEMS- Keyword search across filenames, metadata, and content [Required]ONE_DRIVE_ONEDRIVE_LIST_ITEMS- List all items in the root of a drive [Optional]ONE_DRIVE_GET_ITEM- Get detailed metadata for a specific item, expand children [Optional]ONE_DRIVE_ONEDRIVE_FIND_FILE- Find a specific file by exact name in a folder [Optional]ONE_DRIVE_ONEDRIVE_FIND_FOLDER- Find a specific folder by name [Optional]ONE_DRIVE_LIST_DRIVES- List all accessible drives [Optional]
Key parameters:
q: Search query (plain keywords only, NOT KQL syntax)search_scope:"root"(folder hierarchy) or"drive"(includes shared items)top: Max items per page (default 200)skip_token: Pagination token from@odata.nextLinkselect: Comma-separated fields to return (e.g.,"id,name,webUrl,size")orderby: Sort order (e.g.,"name asc","name desc")item_id: Item ID forGET_ITEMexpand_relations: Array like["children"]or["thumbnails"]forGET_ITEMuser_id:"me"(default) or specific user ID/email
Pitfalls:
ONE_DRIVE_SEARCH_ITEMSdoes NOT support KQL operators (folder:,file:,filetype:,path:); these are treated as literal text- Wildcard characters (
*,?) are NOT supported and are auto-removed; use file extension keywords instead (e.g.,"pdf"not"*.pdf") ONE_DRIVE_ONEDRIVE_LIST_ITEMSreturns only root-level contents; use recursiveONE_DRIVE_GET_ITEMwithexpand_relations: ["children"]for deeper levels- Large folders paginate; always follow
skip_token/@odata.nextLinkuntil exhausted - Some drive ID formats may return "ObjectHandle is Invalid" errors due to Microsoft Graph API limitations
2. Upload and Download Files
When to use: User wants to upload files to OneDrive or download files from it
Tool sequence:
ONE_DRIVE_ONEDRIVE_FIND_FOLDER- Locate the target folder [Prerequisite]ONE_DRIVE_ONEDRIVE_UPLOAD_FILE- Upload a file to a specified folder [Required for upload]ONE_DRIVE_DOWNLOAD_FILE- Download a file by item ID [Required for download]ONE_DRIVE_GET_ITEM- Get file details before download [Optional]
Key parameters:
file: FileUploadable object withs3key,mimetype, andnamefor uploadsfolder: Destination path (e.g.,"/Documents/Reports") or folder ID for uploadsitem_id: File's unique identifier for downloadsfile_name: Desired filename with extension for downloadsdrive_id: Specific drive ID (for SharePoint or OneDrive for Business)user_id:"me"(default) or specific user identifier
Pitfalls:
- Upload automatically renames on conflict (no overwrite option by default)
- Large files are automatically handled via chunking
drive_idoverridesuser_idwhen both are provided- Item IDs vary by platform: OneDrive for Business uses
01...prefix, OneDrive Personal usesHASH!NUMBERformat - Item IDs are case-sensitive; use exactly as returned from API
3. Share Files and Manage Permissions
When to use: User wants to share files/folders or manage who has access
Tool sequence:
ONE_DRIVE_ONEDRIVE_FIND_FILEorONE_DRIVE_ONEDRIVE_FIND_FOLDER- Locate the item [Prerequisite]ONE_DRIVE_GET_ITEM_PERMISSIONS- Check current permissions [Prerequisite]
…
FAQ
How do I connect my OneDrive account?
You need to add a specific address in your AI program's settings and then follow a link to authorize access to your Microsoft account.
Can I overwrite an existing file?
When uploading a file, if one with the same name already exists, it will be automatically renamed. There isn't a direct overwrite option.
How do I share a file?
You can ask to share a file with specific people or create a link so anyone with the link can access it.
Details
Original description by the author
Automate OneDrive file management, search, uploads, downloads, sharing, permissions, and folder operations via Rube MCP (Composio). Always search tools first for current schemas.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3757
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
benchmark
Helps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.
affaan-m/ECC
content-hash-cache-pattern
Lets your agent use content hashes to cache file processing results. This avoids repeated processing and auto-invalidates the cache when content changes. Useful for speeding up slow tasks.
affaan-m/ECC
parallel-execution-optimizer
Makes your agent speed up complex tasks by breaking them into smaller parts and running them in parallel. It ensures everything is verified at the end.
affaan-m/ECC