restore_file_snapshot
Restore a file to a previous snapshot, overwriting current content with the saved version.
Instructions
Restore a file to a previous snapshot (version). This will replace the current file content with the snapshot content.
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": {
"fileId": "<fileId>",
"snapshotId": "<snapshotId>"
},
"name": "restore_file_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | File ID to restore | |
| snapshotId | Yes | Snapshot ID to restore from |