restore_prompt_snippet_version
Roll back a prompt snippet's draft to a previous version using the version UUID. The current draft is snapshotted first, so the operation can be undone.
Instructions
Roll a prompt_snippet's DRAFT back to an earlier version. Takes the versionId (a UUID from list_prompt_snippet_versions), NOT the checkpoint number. The current draft is snapshotted first, so this is itself undoable. It changes only the draft — what is live stays live until a human approves a new publish.
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": {
"id": "<id>",
"versionId": "<versionId>",
"expectedVersion": "<expectedVersion>"
},
"name": "restore_prompt_snippet_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The prompt_snippet's id. | |
| versionId | Yes | The version row's UUID. | |
| expectedVersion | Yes | The draft version you last read — 409 if stale. |