Restore files
code_restorePut a file, a folder, or a whole tree back as it stood after a change, as a new change.
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>",
"changeId": "<changeId>",
"org": "<org>"
},
"name": "code_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | slug of the organization whose trees and sites to use. Required on every call, even when only one organization is listed; a path never names it. | |
| path | Yes | What to restore; <tree>: restores everything. | |
| message | No | A brief note on the change. | |
| changeId | Yes | The change to restore to. | |
| ifChange | No | Refuse unless the tree's latest change is still this one. |