Get file version

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

FieldTypeRequiredDescription and constraints
file_pathstringYesProject-relative source path, or the file ID. Minimum length: 1.
version_idstringYesVersion UUID, or an index from 0 to 99 where 0 is the newest version.
refstringNomain or branch:<name-or-id>. Omit for main. Releases and environments have no version history.
project_referencestringNoProject 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
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__get_file_version",    "arguments": {      "file_path": "example",      "version_id": "example"    }  }}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
binaryobjectNo
idstringYesVersion ID.
file_idstringNoFile ID, when the content source supplies it.
pathstringYesPath of the file at this version.
typestringYesFile kind: page, function, component or file. Values: "page", "function", "component", "file".
created_atstringYesTime the version was created, RFC 3339.
created_bystring or nullYesID of the user recorded for the version, or null.
contentstringYesFull content stored for this version.
size_bytesnumberYesSize of the content encoded as UTF-8, in bytes.

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "file_path": {      "type": "string",      "minLength": 1,      "description": "Project-relative source path, or the file ID."    },    "version_id": {      "type": "string",      "description": "Version UUID, or an index from 0 to 99 where 0 is the newest version."    },    "ref": {      "type": "string",      "description": "main or branch:<name-or-id>. Omit for main. Releases and environments have no version history."    },    "project_reference": {      "type": "string",      "description": "Project ID or slug (defaults to the current project)"    }  },  "required": [    "file_path",    "version_id"  ],  "additionalProperties": false,  "description": "Arguments for the get_file_version tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "binary": {      "type": "object",      "properties": {        "content_hash": {          "type": "string",          "pattern": "^[a-f0-9]{64}$"        },        "byte_size": {          "type": "integer",          "minimum": 0,          "maximum": 8388608        },        "content_type": {          "type": "string",          "minLength": 1,          "maxLength": 200,          "pattern": "^[\\x20-\\x7e]+$"        }      },      "required": [        "content_hash",        "byte_size",        "content_type"      ],      "additionalProperties": false    },    "id": {      "type": "string",      "description": "Version ID."    },    "file_id": {      "type": "string",      "description": "File ID, when the content source supplies it."    },    "path": {      "type": "string",      "description": "Path of the file at this version."    },    "type": {      "type": "string",      "enum": [        "page",        "function",        "component",        "file"      ],      "description": "File kind: page, function, component or file."    },    "created_at": {      "type": "string",      "description": "Time the version was created, RFC 3339."    },    "created_by": {      "type": [        "string",        "null"      ],      "description": "ID of the user recorded for the version, or null."    },    "content": {      "type": "string",      "description": "Full content stored for this version."    },    "size_bytes": {      "type": "number",      "description": "Size of the content encoded as UTF-8, in bytes."    }  },  "required": [    "id",    "path",    "type",    "created_at",    "created_by",    "content",    "size_bytes"  ],  "additionalProperties": false,  "description": "Structured result returned by the get_file_version tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}