List file versions
list_file_versionsList stored older versions of a file on versioning backends such as S3, Dropbox, Drive, Azure, WebDAV, or Git to identify earlier states before reading or restoring one.
Instructions
List the stored older versions of one file. Use when: you need an earlier state on a versioning backend (S3, Dropbox, Drive, Azure, WebDAV, Git). Instead: read_file_version to read one; read_file for the current one. Behavior: read-only. Unsorted (the backend's order). Backends without versions, the local disk too, give [] (read_file_version fails there). Time limit: 15 s. Returns: a JSON array of {version_id, size, modified (ISO 8601 or null), is_current, label (may be empty)}; structuredContent: {versions}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_file_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The file whose versions to list (absolute, or relative to the MCP root). Required unless path_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versions | Yes |