veryfront__get_file_version
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. |
version_id | string | Yes | Version UUID, or an index from 0 to 99 where 0 is the newest version. |
ref | string | No | main or branch:<name-or-id>. Omit for main. Releases and environments have no version history. |
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__get_file_version",7 "arguments": {8 "file_path": "example",9 "version_id": "example"10 }11 }12}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 |
|---|---|---|---|
binary | object | No | |
id | string | Yes | Version ID. |
file_id | string | No | File ID, when the content source supplies it. |
path | string | Yes | Path of the file at this version. |
type | string | Yes | File kind: page, function, component or file. Values: "page", "function", "component", "file". |
created_at | string | Yes | Time the version was created, RFC 3339. |
created_by | string or null | Yes | ID of the user recorded for the version, or null. |
content | string | Yes | Full content stored for this version. |
size_bytes | number | Yes | Size of the content encoded as UTF-8, in bytes. |
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 "version_id": {10 "type": "string",11 "description": "Version UUID, or an index from 0 to 99 where 0 is the newest version."12 },13 "ref": {14 "type": "string",15 "description": "main or branch:<name-or-id>. Omit for main. Releases and environments have no version history."16 },17 "project_reference": {18 "type": "string",19 "description": "Project ID or slug (defaults to the current project)"20 }21 },22 "required": [23 "file_path",24 "version_id"25 ],26 "additionalProperties": false,27 "description": "Arguments for the get_file_version tool.",28 "$schema": "http://json-schema.org/draft-07/schema#"29}output-schema.json
1{2 "type": "object",3 "properties": {4 "binary": {5 "type": "object",6 "properties": {7 "content_hash": {8 "type": "string",9 "pattern": "^[a-f0-9]{64}$"10 },11 "byte_size": {12 "type": "integer",13 "minimum": 0,14 "maximum": 838860815 },16 "content_type": {17 "type": "string",18 "minLength": 1,19 "maxLength": 200,20 "pattern": "^[\\x20-\\x7e]+$"21 }22 },23 "required": [24 "content_hash",25 "byte_size",26 "content_type"27 ],28 "additionalProperties": false29 },30 "id": {31 "type": "string",32 "description": "Version ID."33 },34 "file_id": {35 "type": "string",36 "description": "File ID, when the content source supplies it."37 },38 "path": {39 "type": "string",40 "description": "Path of the file at this version."41 },42 "type": {43 "type": "string",44 "enum": [45 "page",46 "function",47 "component",48 "file"49 ],50 "description": "File kind: page, function, component or file."51 },52 "created_at": {53 "type": "string",54 "description": "Time the version was created, RFC 3339."55 },56 "created_by": {57 "type": [58 "string",59 "null"60 ],61 "description": "ID of the user recorded for the version, or null."62 },63 "content": {64 "type": "string",65 "description": "Full content stored for this version."66 },67 "size_bytes": {68 "type": "number",69 "description": "Size of the content encoded as UTF-8, in bytes."70 }71 },72 "required": [73 "id",74 "path",75 "type",76 "created_at",77 "created_by",78 "content",79 "size_bytes"80 ],81 "additionalProperties": false,82 "description": "Structured result returned by the get_file_version tool.",83 "$schema": "http://json-schema.org/draft-07/schema#"84}