studio.restore_version
Bring back an earlier version of a studio project: it saves that version as a new version; history is never rewritten, so the version it replaces stays listed and restoring that one undoes this. Returns {version, restored_from, previous_version}. A person editing the project in the browser is told at their next save that a newer version is on the server and reloads. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a version the project no longer stores (SIMPLER_STUDIO_VERSION_NOT_STORED): call studio.list_versions and pick a listed one; a stored version that no longer passes the composition schema (SIMPLER_STUDIO_VERSION_UNREADABLE): restore a different version; another save landing at the same moment (SIMPLER_STUDIO_RESTORE_CONFLICT): call again. Free.
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": "<version>"
},
"name": "studio.restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | A version number studio.list_versions lists. | |
| project_id | Yes | The studio project (vp_...) whose history to use. |