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
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": {
"action": "<action>"
},
"name": "version_management"
}
}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 |