rollback_file
Restore a shared-project file to a previous version to undo mistakes. Omit optional version details to revert the last change; the current state is snapshotted first so rollback remains reversible.
Instructions
UNDO YOUR MISTAKE: restore a shared-project file to a previous version. Pass ONLY path to undo the last change. For a specific version: list_snapshots first, then pass path + snapshot_id. SAFE: current state is snapshotted first, so rollback is reversible.
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": {
"path": "<path>"
},
"name": "rollback_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative file path to restore | |
| change_id | No | Restore to before this change-log entry. Omit to undo last change. | |
| snapshot_id | No | Specific version (from list_snapshots). Omit to undo last change. |