Get file version

Return file version. Requires project.files.read.

Arguments

  • file_pathstring · min length 1required

    Project-relative source path, or the file ID.

  • version_idstringrequired

    Version UUID, or an index from 0 to 99 where 0 is the newest version.

  • refstring

    main or branch:<name-or-id>. Omit for main. Releases and environments have no version history.

  • project_referencestring

    Project ID or slug (defaults to the current project)

Responses

curl -X POST -N "https://api.veryfront.com/mcp" \  -H "Authorization: Bearer $VERYFRONT_API_KEY" \  -H "Accept: application/json, text/event-stream" \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__get_file_version",    "arguments": {      "file_path": "string",      "version_id": "string"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"binary\":{\"content_hash\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"byte_size\":0,\"content_type\":\"x\"},\"id\":\"string\",\"file_id\":\"string\",\"path\":\"string\",\"type\":\"page\",\"created_at\":\"string\",\"created_by\":\"string\",\"content\":\"string\",\"size_bytes\":0}"      }    ],    "structuredContent": {      "binary": {        "content_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",        "byte_size": 0,        "content_type": "x"      },      "id": "string",      "file_id": "string",      "path": "string",      "type": "page",      "created_at": "string",      "created_by": "string",      "content": "string",      "size_bytes": 0    }  }}

The tool ran; its output is result.structuredContent.