version_management
Restore, clean up, or compare previous file versions to manage file history in OneDrive and SharePoint.
Instructions
Manage file versions including restore, cleanup, and comparison
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | File item ID | |
| itemPath | No | Alternative: file path | |
| 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) | |
| action | Yes | Version management action | list |
| versionId | No | Version ID for restore/delete/compare actions | |
| keepVersions | No | Number of versions to keep (for cleanup) | |
| compareVersionId | No | Second version ID for comparison |