Bring back an earlier version of a knowledge entry
restore_knowledge_versionBrings back an earlier version of a knowledge entry by saving its content as a NEW newest version, and brings back a deleted entry too. Nothing is overwritten: every version stays in the history, and the restore shows there as a new version saved by the assistant. Send the version to bring back and the newest version number (list_knowledge_versions gives both); if someone saved a newer version since, nothing is saved and the answer is stale with the newest number.
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": {
"knowledge_id": "<knowledge_id>",
"version": "<version>",
"expected_version": "<expected_version>"
},
"name": "restore_knowledge_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | The number of the version whose content to bring back. | |
| project_id | No | The project the entry is in. May be left out: the entry's id finds its own project or the workspace. | |
| knowledge_id | Yes | The entry (list_knowledge and search_knowledge give ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| expected_version | Yes | The entry's newest version number when you read it (read_knowledge or list_knowledge_versions gives it). If someone saved a newer version since, nothing changes and the answer is stale with the newest number: read the entry again first. |