Restore an earlier version of a file
tarkle_restore_versionMake an earlier version (versionId from tarkle_list_versions) the current file again (Pro). Nothing is lost: the file as it is now is kept as a version, and the restored copy counts toward storage. Needs a role that may edit files. A file used by a share link is refused (CONFLICT) unless updateShareLinks is true, because the link then delivers the restored version: ask the person first. Asks for confirmation first: the first call changes nothing; ask the user, then call again with the same inputs and the confirmationCode from the first answer.
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": {
"workspaceId": "<workspaceId>",
"fileId": "<fileId>",
"versionId": "<versionId>"
},
"name": "tarkle_restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file's fileId, from tarkle_list_files or tarkle_list_bin. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| versionId | Yes | The version to restore, from tarkle_list_versions for the same file. | |
| workspaceId | Yes | The workspace's id from tarkle_list_workspaces. | |
| confirmationCode | No | The confirmationCode from the first answer of this tool for the same inputs. Send it only after the user approved. | |
| updateShareLinks | No | true: also change what share links holding this file deliver. Only after the person agreed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| restored | No | ||
| versionId | No |