Upload Small OneDrive File
drive_upload_small_fileUpload small files to OneDrive by providing the target path and raw text or base64 content. Resolve name conflicts with replace, rename, or fail, and set optional MIME type.
Instructions
Upload a small file to the signed-in user OneDrive. Use upload sessions for large files. Requires delegated Files.ReadWrite. Chinese intents / 中文意图: 上传OneDrive文件, 上传网盘文件, 保存文件到OneDrive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Target path relative to the OneDrive root, for example Notes/demo.txt. | |
| content | Yes | File content. Use raw text for text mode or base64 for base64 mode. | |
| contentType | No | Optional MIME type, for example text/plain or application/pdf. | |
| contentEncoding | No | Content encoding. Defaults to text. | |
| conflictBehavior | No | How to handle name conflicts. Defaults to replace. |