revert_learning
Restore a lesson from its revision history, defaulting to the latest saved revision. Saves the current text as a new revision first so the restore can itself be undone.
Instructions
Restore a lesson from its history; revision_id defaults to the latest revision.
The current text is saved as a new revision first, so a revert can itself be reverted.
Returns the restored lesson, or ``None`` if ``learning_id`` does not exist.
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": {
"learning_id": "<learning_id>"
},
"name": "revert_learning"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| learning_id | Yes | ||
| revision_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |