veryfront__get_project_filesAccess
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 |
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. |
paths | string[] | Yes | Array of file paths to fetch (max 50) |
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_project_files",
"arguments": {
"paths": [
"example"
]
}
}
}
Result
The published output shape is summarized below. Inspect both the MCP response content andisError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
files | object[] | Yes | List of files associated with this tool result. |
Full schemas
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug"
},
"ref": {
"type": "string",
"description": "Content selector: main, branch:<name-or-id>, release:<version>, or env:<name>. Omit for main."
},
"branch": {
"type": "string",
"description": "Branch name or ID; alias for ref=branch:<value>."
},
"branch_id": {
"type": "string",
"description": "Legacy branch name or ID alias. Conflicting selectors are rejected."
},
"paths": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "One path item supplied to the tool."
},
"minItems": 1,
"maxItems": 50,
"description": "Array of file paths to fetch (max 50)"
}
},
"required": [
"paths"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Arguments for the get_project_files tool."
}
{
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Canonical file path within the selected branch."
},
"type": {
"type": "string",
"description": "File kind: page, function, component, or file."
},
"content": {
"type": "string",
"description": "Full textual file content."
},
"size": {
"type": "number",
"description": "Size of the file content encoded as UTF-8, in bytes."
},
"version_id": {
"type": "string",
"description": "Resolved content version ID when supplied by the file store."
},
"checksum": {
"type": [
"string",
"null"
],
"description": "SHA-256 content hash, or null when unavailable."
},
"error": {
"type": "string",
"description": "Per-file failure. On failure path echoes the requested reference, type is file, content is empty, size is zero, and checksum is null."
}
},
"required": [
"path",
"type",
"content",
"size",
"checksum"
],
"additionalProperties": false
},
"description": "List of files associated with this tool result."
}
},
"required": [
"files"
],
"additionalProperties": false,
"description": "Structured result returned by the get_project_files tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}