Restore head to a previous state
websiteSourceCode_head_restoreCopies an earlier version or published into a new head without publishing or rewriting history. Takes the edit lease when no leaseToken is sent.
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": {
"websiteId": "<websiteId>",
"to": "<to>"
},
"name": "websiteSourceCode_head_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | State to restore to head: a source version number or `published`. | |
| websiteId | Yes | ||
| leaseToken | No | Omit to have Cactal take the edit lease for you; pass a token from websiteSourceCode.lease.acquire to take over from another editor. |