Restore an earlier version of a draft
restore_draft_versionPut an earlier version back as the draft's text (with the score it had). The text it replaces is itself kept as a version, so a restore can be undone the same way. Refused while a long draft is still being written. Returns the draft as get_generation does. 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": {
"generation_id": "<generation_id>",
"version_id": "<version_id>"
},
"name": "restore_draft_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version_id | Yes | A version id from list_draft_versions. | |
| generation_id | Yes | The draft's generation id. |