veryfront__get_file
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 |
|---|---|---|---|
project_reference | string | No | Project ID or slug (defaults to the current project) |
ref | string | No | Content selector: main, branch:<name-or-id>, release:<version>, or env:<name>. Omit for main. |
branch | string | No | Branch name or ID; alias for ref=branch:<value>. |
branch_id | string | No | Legacy branch name or ID alias. Conflicting selectors are rejected. |
file_path | string | No | Path of the file. Send file_path or path, not two different values. |
path | string | No | File path (e.g., pages/index.mdx). Read files matched by search_knowledge before answering Knowledge Q&A questions. |
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",7 "arguments": {8 "file_path": "notes.txt"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 |
|---|---|---|---|
binary | object | No | |
path | string | Yes | Canonical file path within the selected branch. |
type | string | Yes | File kind: page, function, component, or file. |
content | string | Yes | Full textual file content. |
size | number | Yes | Size of the file content encoded as UTF-8, in bytes. |
version_id | string | No | Resolved content version ID when supplied by the file store. |
checksum | string or null | Yes | SHA-256 content hash, or null when unavailable. |
id | string | No | File ID when supplied by the file store. |
size_bytes | number | Yes | Size of the file content encoded as UTF-8, in bytes. Same value as size. |
updated_at | string | Yes | Last content update timestamp in ISO 8601 format. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug (defaults to the current project)"7 },8 "ref": {9 "type": "string",10 "description": "Content selector: main, branch:<name-or-id>, release:<version>, or env:<name>. Omit for main."11 },12 "branch": {13 "type": "string",14 "description": "Branch name or ID; alias for ref=branch:<value>."15 },16 "branch_id": {17 "type": "string",18 "description": "Legacy branch name or ID alias. Conflicting selectors are rejected."19 },20 "file_path": {21 "type": "string",22 "description": "Path of the file. Send file_path or path, not two different values."23 },24 "path": {25 "type": "string",26 "description": "File path (e.g., pages/index.mdx). Read files matched by search_knowledge before answering Knowledge Q&A questions."27 }28 },29 "additionalProperties": false,30 "description": "Arguments for the get_file tool.",31 "$schema": "http://json-schema.org/draft-07/schema#"32}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 "path": {31 "type": "string",32 "description": "Canonical file path within the selected branch."33 },34 "type": {35 "type": "string",36 "description": "File kind: page, function, component, or file."37 },38 "content": {39 "type": "string",40 "description": "Full textual file content."41 },42 "size": {43 "type": "number",44 "description": "Size of the file content encoded as UTF-8, in bytes."45 },46 "version_id": {47 "type": "string",48 "description": "Resolved content version ID when supplied by the file store."49 },50 "checksum": {51 "type": [52 "string",53 "null"54 ],55 "description": "SHA-256 content hash, or null when unavailable."56 },57 "id": {58 "type": "string",59 "description": "File ID when supplied by the file store."60 },61 "size_bytes": {62 "type": "number",63 "description": "Size of the file content encoded as UTF-8, in bytes. Same value as size."64 },65 "updated_at": {66 "type": "string",67 "description": "Last content update timestamp in ISO 8601 format."68 }69 },70 "required": [71 "path",72 "type",73 "content",74 "size",75 "checksum",76 "size_bytes",77 "updated_at"78 ],79 "additionalProperties": false,80 "description": "Structured result returned by the get_file tool.",81 "$schema": "http://json-schema.org/draft-07/schema#"82}