veryfront__get_fileAccess
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
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "veryfront__get_file",
"arguments": {
"file_path": "notes.txt"
}
}
}
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 |
|---|---|---|---|
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
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug (defaults to the current project)"
},
"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."
},
"file_path": {
"type": "string",
"description": "Path of the file. Send file_path or path, not two different values."
},
"path": {
"type": "string",
"description": "File path (e.g., pages/index.mdx). Read files matched by search_knowledge before answering Knowledge Q&A questions."
}
},
"additionalProperties": false,
"description": "Arguments for the get_file tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}
{
"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
},
"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."
},
"id": {
"type": "string",
"description": "File ID when supplied by the file store."
},
"size_bytes": {
"type": "number",
"description": "Size of the file content encoded as UTF-8, in bytes. Same value as size."
},
"updated_at": {
"type": "string",
"description": "Last content update timestamp in ISO 8601 format."
}
},
"required": [
"path",
"type",
"content",
"size",
"checksum",
"size_bytes",
"updated_at"
],
"additionalProperties": false,
"description": "Structured result returned by the get_file tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}