veryfront__list_file_versions
Requires project.files.read.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Read-only.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
file_path | string | Yes | Project-relative source path, or the file ID. Minimum length: 1. |
ref | string | No | main or branch:<name-or-id>. Omit for main. Releases and environments have no version history. |
cursor | string | No | Opaque page_info.next from the previous page. |
limit | integer | No | Versions per page, 1 to 100 (default 20). Minimum: 1. Maximum: 100. |
project_reference | string | No | Project ID or slug (defaults to the current project) |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__list_file_versions",7 "arguments": {8 "file_path": "example"9 }10 }11}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
data | object[] | Yes | Primary result records returned by the tool. |
page_info | object | Yes | Pagination cursor values for traversing the result set. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "file_path": {5 "type": "string",6 "minLength": 1,7 "description": "Project-relative source path, or the file ID."8 },9 "ref": {10 "type": "string",11 "description": "main or branch:<name-or-id>. Omit for main. Releases and environments have no version history."12 },13 "cursor": {14 "type": "string",15 "description": "Opaque page_info.next from the previous page."16 },17 "limit": {18 "type": "integer",19 "minimum": 1,20 "maximum": 100,21 "description": "Versions per page, 1 to 100 (default 20)."22 },23 "project_reference": {24 "type": "string",25 "description": "Project ID or slug (defaults to the current project)"26 }27 },28 "required": [29 "file_path"30 ],31 "additionalProperties": false,32 "description": "Arguments for the list_file_versions tool.",33 "$schema": "http://json-schema.org/draft-07/schema#"34}output-schema.json
1{2 "type": "object",3 "properties": {4 "data": {5 "type": "array",6 "items": {7 "type": "object",8 "properties": {9 "binary": {10 "type": "object",11 "properties": {12 "content_hash": {13 "type": "string",14 "pattern": "^[a-f0-9]{64}$"15 },16 "byte_size": {17 "type": "integer",18 "minimum": 0,19 "maximum": 838860820 },21 "content_type": {22 "type": "string",23 "minLength": 1,24 "maxLength": 200,25 "pattern": "^[\\x20-\\x7e]+$"26 }27 },28 "required": [29 "content_hash",30 "byte_size",31 "content_type"32 ],33 "additionalProperties": false34 },35 "id": {36 "type": "string",37 "description": "Version ID."38 },39 "file_id": {40 "type": "string",41 "description": "File ID, when the content source supplies it."42 },43 "path": {44 "type": "string",45 "description": "Path of the file at this version."46 },47 "type": {48 "type": "string",49 "enum": [50 "page",51 "function",52 "component",53 "file"54 ],55 "description": "File kind: page, function, component or file."56 },57 "created_at": {58 "type": "string",59 "description": "Time the version was created, RFC 3339."60 },61 "created_by": {62 "type": [63 "string",64 "null"65 ],66 "description": "ID of the user recorded for the version, or null."67 },68 "size_bytes": {69 "type": "number",70 "description": "Size of the version content in UTF-8 bytes, when the content source returns it."71 }72 },73 "required": [74 "id",75 "path",76 "type",77 "created_at",78 "created_by"79 ],80 "additionalProperties": false81 },82 "description": "Primary result records returned by the tool."83 },84 "page_info": {85 "type": "object",86 "properties": {87 "self": {88 "type": [89 "string",90 "null"91 ],92 "description": "Cursor that refers to the current page."93 },94 "first": {95 "type": "null"96 },97 "next": {98 "type": [99 "string",100 "null"101 ],102 "description": "Cursor for the next page when pagination is available."103 },104 "prev": {105 "type": [106 "string",107 "null"108 ],109 "description": "Cursor for the previous page when pagination is available."110 }111 },112 "required": [113 "self",114 "first",115 "next",116 "prev"117 ],118 "additionalProperties": false,119 "description": "Pagination cursor values for traversing the result set."120 }121 },122 "required": [123 "data",124 "page_info"125 ],126 "additionalProperties": false,127 "description": "Structured result returned by the list_file_versions tool.",128 "$schema": "http://json-schema.org/draft-07/schema#"129}