restore_document_version
Restore content from a version or snapshot listed by read_document(view=versions). This changes current content and queues indexing; it does not restore a trashed document.
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": {
"documentId": "<documentId>",
"versionId": "<versionId>"
},
"name": "restore_document_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versionId | Yes | UUID returned by the corresponding list or read operation. | |
| documentId | Yes | UUID returned by the corresponding list or read operation. | |
| workspaceId | No | Workspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| tags | No | ||
| title | Yes | ||
| content | Yes | ||
| ownerId | Yes | ||
| folderId | Yes | ||
| metadata | No | ||
| createdAt | Yes | ||
| updatedAt | Yes | ||
| categoryId | Yes | ||
| folderName | No | ||
| visibility | Yes | ||
| contentJson | No |