graph_restore_file_version
Restores a file to an earlier version using its file ID and version ID, optionally targeting a specific drive or your own OneDrive.
Instructions
Restore a file to an earlier version.
Args: item_id: The file ID. version_id: The version ID (from graph_list_file_versions). drive_id: Drive ID to act on. Empty targets your own OneDrive.
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": {
"item_id": "<item_id>",
"version_id": "<version_id>"
},
"name": "graph_restore_file_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| drive_id | No | ||
| version_id | Yes |