{"id":"147ce421-3b31-4bbb-94cc-76f7d41b9cd7","shortId":"htkuzK","kind":"skill","title":"Onedrive","tagline":"Application Skills skill by Membranedev","description":"# MS OneDrive\n\nMS OneDrive is a cloud storage service provided by Microsoft. It allows users to store files, photos, and documents in the cloud and access them from any device. OneDrive is commonly used by individuals and businesses for personal and collaborative file management.\n\nOfficial docs: https://learn.microsoft.com/en-us/onedrive/developer/\n\n## MS OneDrive Overview\n\n- **File**\n  - **Content**\n  - **Permissions**\n- **Folder**\n  - **Permissions**\n- **Search**\n\nUse action names and parameters as needed.\n\n## Working with MS OneDrive\n\nThis skill uses the Membrane CLI to interact with MS OneDrive. Membrane handles authentication and credentials refresh automatically — so you can focus on the integration logic rather than auth plumbing.\n\n### Install the CLI\n\nInstall the Membrane CLI so you can run `membrane` from the terminal:\n\n```bash\nnpm install -g @membranehq/cli@latest\n```\n\n### Authentication\n\n```bash\nmembrane login --tenant --clientName=<agentType>\n```\n\nThis will either open a browser for authentication or print an authorization URL to the console, depending on whether interactive mode is available.\n\n**Headless environments:** The command will print an authorization URL. Ask the user to open it in a browser. When they see a code after completing login, finish with:\n\n```bash\nmembrane login complete <code>\n```\n\nAdd `--json` to any command for machine-readable JSON output.\n\n**Agent Types** : claude, openclaw, codex, warp, windsurf, etc. Those will be used to adjust tooling to be used best with your harness\n\n### Connecting to MS OneDrive\n\nUse `membrane connection ensure` to find or create a connection by app URL or domain:\n\n```bash\nmembrane connection ensure \"https://onedrive.live.com/login/\" --json\n```\nThe user completes authentication in the browser. The output contains the new connection id.\n\nThis is the fastest way to get a connection. The URL is normalized to a domain and matched against known apps. If no app is found, one is created and a connector is built automatically.\n\nIf the returned connection has `state: \"READY\"`, skip to **Step 2**.\n\n#### 1b. Wait for the connection to be ready\n\nIf the connection is in `BUILDING` state, poll until it's ready:\n\n```bash\nnpx @membranehq/cli connection get <id> --wait --json\n```\n\nThe `--wait` flag long-polls (up to `--timeout` seconds, default 30) until the state changes. Keep polling until `state` is no longer `BUILDING`.\n\nThe resulting state tells you what to do next:\n\n- **`READY`** — connection is fully set up. Skip to **Step 2**.\n- **`CLIENT_ACTION_REQUIRED`** — the user or agent needs to do something. The `clientAction` object describes the required action:\n  - `clientAction.type` — the kind of action needed:\n    - `\"connect\"` — user needs to authenticate (OAuth, API key, etc.). This covers initial authentication and re-authentication for disconnected connections.\n    - `\"provide-input\"` — more information is needed (e.g. which app to connect to).\n  - `clientAction.description` — human-readable explanation of what's needed.\n  - `clientAction.uiUrl` (optional) — URL to a pre-built UI where the user can complete the action. Show this to the user when present.\n  - `clientAction.agentInstructions` (optional) — instructions for the AI agent on how to proceed programmatically.\n\n  After the user completes the action (e.g. authenticates in the browser), poll again with `membrane connection get <id> --json` to check if the state moved to `READY`.\n\n- **`CONFIGURATION_ERROR`** or **`SETUP_FAILED`** — something went wrong. Check the `error` field for details.\n\n### Searching for actions\n\nSearch using a natural language description of what you want to do:\n\n```bash\nmembrane action list --connectionId=CONNECTION_ID --intent \"QUERY\" --limit 10 --json\n```\n\nYou should always search for actions in the context of a specific connection.\n\nEach result includes `id`, `name`, `description`, `inputSchema` (what parameters the action accepts), and `outputSchema` (what it returns).\n\n## Popular actions\n\n| Name | Key | Description |\n| --- | --- | --- |\n| Upload Small File | upload-small-file | Upload a file up to 4MB using simple upload. |\n| Get Shared With Me | get-shared-with-me | Get a list of files and folders shared with the current user |\n| Get Recent Files | get-recent-files | Get a list of recently accessed files by the current user |\n| List Drives | list-drives | List all drives available to the current user |\n| Get Download URL | get-download-url | Get a pre-authenticated download URL for a file (valid for a short period) |\n| Create Sharing Link | create-sharing-link | Create a sharing link for a file or folder |\n| Search Files | search-files | Search for files and folders in OneDrive using a search query |\n| Rename Item | rename-item | Rename a file or folder |\n| Move Item | move-item | Move a file or folder to a new location or rename it |\n| Copy Item | copy-item | Copy a file or folder to a new location. |\n| Delete Item | delete-item | Delete a file or folder by its ID (moves to recycle bin) |\n| Create Folder | create-folder | Create a new folder in the specified parent folder |\n| Get Item by Path | get-item-by-path | Retrieve metadata for a file or folder by its path relative to root |\n| Get Item by ID | get-item-by-id | Retrieve metadata for a file or folder by its unique ID |\n| List Folder Contents | list-folder-contents | List all files and folders within a specific folder by item ID |\n| List Root Items | list-root-items | List all files and folders in the root of the current user's OneDrive |\n| Get My Drive | get-my-drive | Retrieve properties and relationships of the current user's OneDrive |\n\n### Running actions\n\n```bash\nmembrane action run <actionId> --connectionId=CONNECTION_ID --json\n```\n\nTo pass JSON parameters:\n\n```bash\nmembrane action run <actionId> --connectionId=CONNECTION_ID --input '{\"key\": \"value\"}' --json\n```\n\nThe result is in the `output` field of the response.\n\n\n### Proxy requests\n\nWhen the available actions don't cover your use case, you can send requests directly to the MS OneDrive API through Membrane's proxy. Membrane automatically appends the base URL to the path you provide and injects the correct authentication headers — including transparent credential refresh if they expire.\n\n```bash\nmembrane request CONNECTION_ID /path/to/endpoint\n```\n\nCommon options:\n\n| Flag | Description |\n|------|-------------|\n| `-X, --method` | HTTP method (GET, POST, PUT, PATCH, DELETE). Defaults to GET |\n| `-H, --header` | Add a request header (repeatable), e.g. `-H \"Accept: application/json\"` |\n| `-d, --data` | Request body (string) |\n| `--json` | Shorthand to send a JSON body and set `Content-Type: application/json` |\n| `--rawData` | Send the body as-is without any processing |\n| `--query` | Query-string parameter (repeatable), e.g. `--query \"limit=10\"` |\n| `--pathParam` | Path parameter (repeatable), e.g. `--pathParam \"id=123\"` |\n\n\n## Best practices\n\n- **Always prefer Membrane to talk with external apps** — Membrane provides pre-built actions with built-in auth, pagination, and error handling. This will burn less tokens and make communication more secure\n- **Discover before you build** — run `membrane action list --intent=QUERY` (replace QUERY with your intent) to find existing actions before writing custom API calls. Pre-built actions handle pagination, field mapping, and edge cases that raw API calls miss.\n- **Let Membrane handle credentials** — never ask the user for API keys or tokens. Create a connection instead; Membrane manages the full Auth lifecycle server-side with no local secrets.","tags":["onedrive","application","skills","membranedev"],"capabilities":["skill","source-membranedev","category-application-skills"],"categories":["application-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/membranedev/application-skills/onedrive","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"install_from":"skills.sh"}},"qualityScore":"0.300","qualityRationale":"deterministic score 0.30 from registry signals: · indexed on skills.sh · published under membranedev/application-skills","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill:v1","enrichmentVersion":1,"enrichedAt":"2026-04-29T03:40:25.038Z","embedding":null,"createdAt":"2026-04-18T20:32:19.549Z","updatedAt":"2026-04-29T03:40:25.038Z","lastSeenAt":"2026-04-29T03:40:25.038Z","tsv":"'/en-us/onedrive/developer/':55 '/login/':246 '/path/to/endpoint':964 '10':544,1029 '123':1037 '1b':308 '2':307,377 '30':346 '4mb':593 'accept':570,990 'access':32,630 'action':66,379,395,400,459,484,521,536,551,569,577,875,878,890,914,1053,1079,1091,1100 'add':188,983 'adjust':212 'agent':199,384,473 'ai':472 'allow':20 'alway':548,1040 'api':408,930,1095,1110,1122 'app':236,282,285,431,1047 'append':937 'applic':2 'application/json':991,1009 'as-i':1014 'ask':165,1118 'auth':104,1058,1134 'authent':89,127,140,251,406,414,418,486,660,950 'author':144,163 'automat':93,296,936 'avail':155,644,913 'base':939 'bash':121,128,184,240,328,534,876,888,959 'best':217,1038 'bin':760 'bodi':995,1003,1013 'browser':138,173,254,489 'build':321,358,1076 'built':295,451,1052,1056,1099 'built-in':1055 'burn':1065 'busi':44 'call':1096,1111 'case':920,1107 'category-application-skills' 'chang':350 'check':498,513 'claud':201 'cli':81,108,112 'client':378 'clientact':390 'clientaction.agentinstructions':467 'clientaction.description':435 'clientaction.type':396 'clientaction.uiurl':444 'clientnam':132 'cloud':13,30 'code':178 'codex':203 'collabor':48 'command':159,192 'common':39,965 'communic':1070 'complet':180,187,250,457,482 'configur':505 'connect':221,227,234,242,260,270,300,312,318,331,369,402,421,433,494,539,558,881,893,962,1128 'connectionid':538,880,892 'connector':293 'consol':148 'contain':257 'content':60,819,823,1007 'content-typ':1006 'context':554 'copi':730,733,735 'copy-item':732 'correct':949 'cover':412,917 'creat':232,290,671,675,678,761,764,766,1126 'create-fold':763 'create-sharing-link':674 'credenti':91,954,1116 'current':616,634,647,853,870 'custom':1094 'd':992 'data':993 'default':345,978 'delet':744,747,749,977 'delete-item':746 'depend':149 'describ':392 'descript':527,564,580,968 'detail':518 'devic':36 'direct':925 'disconnect':420 'discov':1073 'doc':52 'document':27 'domain':239,277 'download':650,654,661 'drive':637,640,643,859,863 'e.g':429,485,988,1026,1034 'edg':1106 'either':135 'ensur':228,243 'environ':157 'error':506,515,1061 'etc':206,410 'exist':1090 'expir':958 'explan':439 'extern':1046 'fail':509 'fastest':265 'field':516,905,1103 'file':24,49,59,583,587,590,610,620,624,631,665,684,688,691,694,710,720,737,751,788,810,826,845 'find':230,1089 'finish':182 'flag':337,967 'focus':97 'folder':62,612,686,696,712,722,739,753,762,765,769,774,790,812,818,822,828,832,847 'found':287 'full':1133 'fulli':371 'g':124 'get':268,332,495,597,602,606,618,622,625,649,653,656,775,780,797,802,857,861,973,980 'get-download-url':652 'get-item-by-id':801 'get-item-by-path':779 'get-my-dr':860 'get-recent-fil':621 'get-shared-with-m':601 'h':981,989 'handl':88,1062,1101,1115 'har':220 'header':951,982,986 'headless':156 'http':971 'human':437 'human-read':436 'id':261,540,562,756,800,805,816,835,882,894,963,1036 'includ':561,952 'individu':42 'inform':426 'initi':413 'inject':947 'input':424,895 'inputschema':565 'instal':106,109,123 'instead':1129 'instruct':469 'integr':100 'intent':541,1081,1087 'interact':83,152 'item':704,707,714,717,731,734,745,748,776,781,798,803,834,838,842 'json':189,197,247,334,496,545,883,886,898,997,1002 'keep':351 'key':409,579,896,1123 'kind':398 'known':281 'languag':526 'latest':126 'learn.microsoft.com':54 'learn.microsoft.com/en-us/onedrive/developer/':53 'less':1066 'let':1113 'lifecycl':1135 'limit':543,1028 'link':673,677,681 'list':537,608,627,636,639,641,817,821,824,836,840,843,1080 'list-driv':638 'list-folder-cont':820 'list-root-item':839 'local':1141 'locat':726,743 'logic':101 'login':130,181,186 'long':339 'long-pol':338 'longer':357 'machin':195 'machine-read':194 'make':1069 'manag':50,1131 'map':1104 'match':279 'membran':80,87,111,117,129,185,226,241,493,535,877,889,932,935,960,1042,1048,1078,1114,1130 'membranedev':6 'membranehq/cli':125,330 'metadata':785,807 'method':970,972 'microsoft':18 'miss':1112 'mode':153 'move':502,713,716,718,757 'move-item':715 'ms':7,9,56,74,85,223,928 'name':67,563,578 'natur':525 'need':71,385,401,404,428,443 'never':1117 'new':259,725,742,768 'next':367 'normal':274 'npm':122 'npx':329 'oauth':407 'object':391 'offici':51 'one':288 'onedr':1,8,10,37,57,75,86,224,698,856,873,929 'onedrive.live.com':245 'onedrive.live.com/login/':244 'open':136,169 'openclaw':202 'option':445,468,966 'output':198,256,904 'outputschema':572 'overview':58 'pagin':1059,1102 'paramet':69,567,887,1024,1032 'parent':773 'pass':885 'patch':976 'path':778,783,793,943,1031 'pathparam':1030,1035 'period':670 'permiss':61,63 'person':46 'photo':25 'plumb':105 'poll':323,340,352,490 'popular':576 'post':974 'practic':1039 'pre':450,659,1051,1098 'pre-authent':658 'pre-built':449,1050,1097 'prefer':1041 'present':466 'print':142,161 'proceed':477 'process':1019 'programmat':478 'properti':865 'provid':16,423,945,1049 'provide-input':422 'proxi':909,934 'put':975 'queri':542,702,1020,1022,1027,1082,1084 'query-str':1021 'rather':102 'raw':1109 'rawdata':1010 're':417 're-authent':416 'readabl':196,438 'readi':303,315,327,368,504 'recent':619,623,629 'recycl':759 'refresh':92,955 'relat':794 'relationship':867 'renam':703,706,708,728 'rename-item':705 'repeat':987,1025,1033 'replac':1083 'request':910,924,961,985,994 'requir':380,394 'respons':908 'result':360,560,900 'retriev':784,806,864 'return':299,575 'root':796,837,841,850 'run':116,874,879,891,1077 'search':64,519,522,549,687,690,692,701 'search-fil':689 'second':344 'secret':1142 'secur':1072 'see':176 'send':923,1000,1011 'server':1137 'server-sid':1136 'servic':15 'set':372,1005 'setup':508 'share':598,603,613,672,676,680 'short':669 'shorthand':998 'show':460 'side':1138 'simpl':595 'skill':3,4,77 'skip':304,374 'small':582,586 'someth':388,510 'source-membranedev' 'specif':557,831 'specifi':772 'state':302,322,349,354,361,501 'step':306,376 'storag':14 'store':23 'string':996,1023 'talk':1044 'tell':362 'tenant':131 'termin':120 'timeout':343 'token':1067,1125 'tool':213 'transpar':953 'type':200,1008 'ui':452 'uniqu':815 'upload':581,585,588,596 'upload-small-fil':584 'url':145,164,237,272,446,651,655,662,940 'use':40,65,78,210,216,225,523,594,699,919 'user':21,167,249,382,403,455,464,481,617,635,648,854,871,1120 'valid':666 'valu':897 'wait':309,333,336 'want':531 'warp':204 'way':266 'went':511 'whether':151 'windsurf':205 'within':829 'without':1017 'work':72 'write':1093 'wrong':512 'x':969","prices":[{"id":"774b72b3-5102-440c-be5e-93ce5b74fe3c","listingId":"147ce421-3b31-4bbb-94cc-76f7d41b9cd7","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"membranedev","category":"application-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T20:32:19.549Z"}],"sources":[{"listingId":"147ce421-3b31-4bbb-94cc-76f7d41b9cd7","source":"github","sourceId":"membranedev/application-skills/onedrive","sourceUrl":"https://github.com/membranedev/application-skills/tree/main/skills/onedrive","isPrimary":false,"firstSeenAt":"2026-04-18T22:47:56.298Z","lastSeenAt":"2026-04-29T00:59:27.298Z"},{"listingId":"147ce421-3b31-4bbb-94cc-76f7d41b9cd7","source":"skills_sh","sourceId":"membranedev/application-skills/onedrive","sourceUrl":"https://skills.sh/membranedev/application-skills/onedrive","isPrimary":true,"firstSeenAt":"2026-04-18T20:32:19.549Z","lastSeenAt":"2026-04-29T03:40:25.038Z"}],"details":{"listingId":"147ce421-3b31-4bbb-94cc-76f7d41b9cd7","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"membranedev","slug":"onedrive","source":"skills_sh","category":"application-skills","skills_sh_url":"https://skills.sh/membranedev/application-skills/onedrive"},"updatedAt":"2026-04-29T03:40:25.038Z"}}