sftp_rollback_file
Revert a remote file to its saved .matlock.bak snapshot, undoing modifications via SFTP over SSH.
Instructions
Instantly rollback a modified remote file to its previous .matlock.bak snapshot.
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": {
"filePath": "<filePath>"
},
"name": "sftp_rollback_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional SSH connection target. If omitted, uses default profile (homelab). | |
| filePath | Yes | Absolute remote file path to restore. | |
| backupPath | No | Specific backup file path (if omitted, uses .matlock.bak.latest). |