sync_folder
Synchronize a local folder with OneDrive or SharePoint bidirectionally, with conflict resolution and file pattern filters.
Instructions
Synchronize a local folder with OneDrive/SharePoint (bidirectional)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "sync_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Local folder path to sync | |
| remotePath | Yes | Remote folder path in OneDrive/SharePoint | |
| 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) | |
| direction | No | Sync direction | bidirectional |
| conflictResolution | No | How to resolve conflicts | newer |
| includePatterns | No | File patterns to include (e.g., ["*.docx", "*.xlsx"]) | |
| excludePatterns | No | File patterns to exclude (e.g., ["*.tmp", "~*"]) | |
| deleteOrphans | No | Delete files that exist only on one side |