A knowledge entry's versions
list_knowledge_versionsThe saved versions of a knowledge entry, newest first, a deleted entry's too, without their content: each version's number, what it did (created, edited, deleted, restored), its title, who saved it, when, and a fingerprint of its content (two versions with the same fingerprint have the same content). The first row is the newest version, whose number restore_knowledge_version needs. Long histories come a page at a time: send nextBefore from the answer as before.
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>"
},
"name": "list_knowledge_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Which level to read: a project's knowledge (needs project_id), the workspace's, or CodeGene's platform guidance (read only). Leave it out for the project when project_id is sent, otherwise the workspace. A search hit names the level its entry is on. | |
| limit | No | Most versions to answer. | |
| before | No | Only versions numbered below this: the nextBefore of the previous page. Leave it out for the newest page. | |
| 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. |