Get File Download URL
files_get_download_urlResolve OneDrive or SharePoint files from links or IDs and get a short-lived download URL. Convert Office files to PDF or return small text inline.
Instructions
Resolve a OneDrive or SharePoint file from a link pasted in chat or mail, or from driveId and itemId, and return a short-lived pre-authenticated download URL for the client to fetch and parse. format pdf converts Office files to PDF first. Small plain-text files also return their text inline. SharePoint files also require the mcp.sharepoint App Role. Chinese intents / 中文意图: 打开SharePoint链接, 读取文档内容, 下载文件, 获取文件下载地址, 把Word转成PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | OneDrive or SharePoint sharing link or file URL. Use this or itemId. | |
| format | No | original (default) or pdf, which converts Word, Excel and PowerPoint files to PDF. | |
| itemId | No | Item ID from files_search. | |
| driveId | No | Drive ID from files_search. Omit for the user OneDrive. | |
| includeText | No | Return small plain-text files (txt, md, csv, json...) inline. Defaults to true. | |
| maxTextChars | No | Maximum inline text characters. Defaults to 20000. |