upload_file
Upload a local file to OneDrive or SharePoint by specifying remote path and optional site or drive. Choose conflict behavior: fail, replace, or rename.
Instructions
Upload a file to OneDrive or SharePoint
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Local file path to upload | |
| remotePath | Yes | Remote path where to upload (e.g., "/Documents/report.xlsx") | |
| siteId | No | SharePoint site ID (optional) | |
| site | No | Known SharePoint site alias or canonical URL | |
| siteUrl | No | Canonical SharePoint site URL (optional alternative to siteId) | |
| driveId | No | Drive ID for a specific document library (optional) | |
| conflictBehavior | No | What to do if file already exists | rename |