Restore a version
restore_versionBrings an earlier version of a project back (version_id from list_versions) — as a NEW current state, like Restore in the editor's history: nothing is lost, the state before stays in the history and can be restored in turn. The name stays as it is now. Someone with the project open sees it change live. Only when the user asks for an earlier version.
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>",
"version_id": "<version_id>"
},
"name": "restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project id (from create_project or list_projects). | |
| version_id | Yes | From list_versions. |