history_restore
Restore a committed revision to a new revision while preserving history. Provide the current expected revision to safely roll back.
Instructions
Restore a committed revision by creating a NEW revision; requires the current expected_revision and preserves history.
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": {
"project_id": "<project_id>",
"expected_revision": "<expected_revision>",
"target_revision": "<target_revision>"
},
"name": "history_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | ||
| project_id | Yes | ||
| target_revision | Yes | ||
| expected_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| changed | No | ||
| summary | Yes | ||
| revision | No | ||
| warnings | No | ||
| project_id | No |