Restore version
nextcloud_restore_versionRestore a specific stored version of a file so the current content is saved as a version, letting you roll back files to an earlier state.
Instructions
Restore one stored version of a file; the current content becomes a version.
MOVE /remote.php/dav/versions/{user}/versions/{fileid}/{version_id}
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": {
"path": "<path>",
"version_id": "<version_id>"
},
"name": "nextcloud_restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| version_id | Yes |