restore_script_version
Restore a previous script version by version ID for a Takes session, saving the current text to history first so earlier edits can be recovered.
Instructions
Put an old version back (the current text is saved to history first).
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": {
"session": "<session>",
"version": "<version>"
},
"name": "restore_script_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work. | |
| version | Yes | Version id from the history list. |