veryfront__get_files
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 |
|---|---|---|---|
ref | string | No | Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main. |
paths | string[] | Yes | Exact file paths to read, at most 50. Results keep this order. |
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_files",7 "arguments": {8 "paths": [9 "example"10 ]11 }12 }13}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. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "ref": {5 "type": "string",6 "description": "Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main."7 },8 "paths": {9 "type": "array",10 "items": {11 "type": "string",12 "minLength": 1,13 "maxLength": 1024,14 "description": "One path item supplied to the tool."15 },16 "minItems": 1,17 "maxItems": 50,18 "description": "Exact file paths to read, at most 50. Results keep this order."19 },20 "project_reference": {21 "type": "string",22 "description": "Project ID or slug (defaults to the current project)"23 }24 },25 "required": [26 "paths"27 ],28 "additionalProperties": false,29 "$schema": "http://json-schema.org/draft-07/schema#",30 "description": "Arguments for the get_files tool."31}output-schema.json
1{2 "type": "object",3 "properties": {4 "data": {5 "type": "array",6 "items": {7 "type": "object",8 "properties": {9 "path": {10 "type": "string",11 "description": "The requested path, or the stored path of the file it resolved to."12 },13 "found": {14 "type": "boolean",15 "description": "False for a path that names no file or a file the caller may not read."16 },17 "file": {18 "anyOf": [19 {20 "type": "object",21 "properties": {22 "id": {23 "type": [24 "string",25 "null"26 ],27 "description": "File ID, or null when the content source supplies none."28 },29 "version_id": {30 "type": [31 "string",32 "null"33 ],34 "description": "Current version ID, or null when the content source supplies none."35 },36 "path": {37 "type": "string",38 "description": "Project-relative source path."39 },40 "type": {41 "type": "string",42 "enum": [43 "page",44 "function",45 "component",46 "file"47 ],48 "description": "File kind: page, function, component or file."49 },50 "content": {51 "type": "string",52 "description": "Full text content."53 },54 "size_bytes": {55 "type": "number",56 "description": "Size of the content encoded as UTF-8, in bytes."57 },58 "binary": {59 "type": "object",60 "properties": {61 "content_hash": {62 "type": "string",63 "pattern": "^[a-f0-9]{64}$"64 },65 "byte_size": {66 "type": "integer",67 "minimum": 0,68 "maximum": 838860869 },70 "content_type": {71 "type": "string",72 "minLength": 1,73 "maxLength": 200,74 "pattern": "^[\\x20-\\x7e]+$"75 }76 },77 "required": [78 "content_hash",79 "byte_size",80 "content_type"81 ],82 "additionalProperties": false83 },84 "checksum": {85 "type": [86 "string",87 "null"88 ],89 "description": "SHA-256 content hash, or null when unavailable."90 },91 "updated_at": {92 "type": "string",93 "description": "Last content update time, RFC 3339."94 }95 },96 "required": [97 "id",98 "version_id",99 "path",100 "type",101 "content",102 "size_bytes",103 "checksum",104 "updated_at"105 ],106 "additionalProperties": false,107 "description": "Structured file details associated with this tool result."108 },109 {110 "type": "null",111 "description": "The file returned by the tool."112 }113 ],114 "description": "The file, or null when found is false."115 },116 "error": {117 "anyOf": [118 {119 "type": "object",120 "properties": {121 "code": {122 "type": "string",123 "const": "internal",124 "description": "Always internal: the read of this path failed."125 },126 "message": {127 "type": "string",128 "description": "Why the read of this path failed."129 }130 },131 "required": [132 "code",133 "message"134 ],135 "additionalProperties": false,136 "description": "Error details returned by the tool."137 },138 {139 "type": "null",140 "description": "Error details returned by the tool."141 }142 ],143 "description": "Set only when the read of this path failed; null for a missing or restricted path."144 }145 },146 "required": [147 "path",148 "found",149 "file",150 "error"151 ],152 "additionalProperties": false153 },154 "description": "Primary result records returned by the tool."155 }156 },157 "required": [158 "data"159 ],160 "additionalProperties": false,161 "description": "Structured result returned by the get_files tool.",162 "$schema": "http://json-schema.org/draft-07/schema#"163}