veryfront__read_external_file_content
Requires project.integrations.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. Requires project.integrations.read through the caller's own personal provider connection. |
provider | string | Yes | Storage provider accessed through the caller's own personal connection. A shared project connection is not used. Values: "onedrive", "sharepoint", "drive". |
file_id | string | Yes | File ID from list_external_files Minimum length: 1. Maximum length: 1024. |
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__read_external_file_content",7 "arguments": {8 "provider": "onedrive",9 "file_id": "example"10 }11 }12}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 |
|---|---|---|---|
file | object | Yes | Structured file details associated with this tool result. |
content | string | Yes | Complete UTF-8 text or base64 content. More than 100000 encoded characters or 50 MiB returns limit_exceeded instead of partial content; use importExternalFile for larger files. Folders return invalid_input. |
content_encoding | string | Yes | Values: "utf8", "base64". |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug. Requires project.integrations.read through the caller's own personal provider connection."7 },8 "provider": {9 "type": "string",10 "enum": [11 "onedrive",12 "sharepoint",13 "drive"14 ],15 "description": "Storage provider accessed through the caller's own personal connection. A shared project connection is not used."16 },17 "file_id": {18 "type": "string",19 "minLength": 1,20 "maxLength": 1024,21 "description": "File ID from list_external_files"22 }23 },24 "required": [25 "provider",26 "file_id"27 ],28 "additionalProperties": false,29 "description": "Arguments for the read_external_file_content tool.",30 "$schema": "http://json-schema.org/draft-07/schema#"31}output-schema.json
1{2 "type": "object",3 "properties": {4 "file": {5 "type": "object",6 "properties": {7 "id": {8 "type": "string",9 "minLength": 1,10 "maxLength": 1024,11 "description": "Unique identifier for the returned record."12 },13 "provider": {14 "type": "string",15 "enum": [16 "onedrive",17 "sharepoint",18 "drive"19 ]20 },21 "name": {22 "type": "string",23 "description": "Human-readable name for the returned record."24 },25 "kind": {26 "type": "string",27 "enum": [28 "file",29 "folder"30 ]31 },32 "parent_id": {33 "anyOf": [34 {35 "$ref": "#/properties/file/properties/id"36 },37 {38 "type": "null",39 "description": "The parent id returned by the tool."40 }41 ]42 },43 "path": {44 "type": "string"45 },46 "mime_type": {47 "type": "string",48 "minLength": 149 },50 "size_bytes": {51 "type": "integer",52 "minimum": 0,53 "maximum": 900719925474099154 },55 "modified_at": {56 "anyOf": [57 {58 "type": "string",59 "format": "date-time"60 },61 {62 "type": "null",63 "description": "The modified at returned by the tool."64 }65 ]66 },67 "etag": {68 "anyOf": [69 {70 "type": "string",71 "minLength": 1,72 "maxLength": 1024,73 "pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$"74 },75 {76 "type": "null",77 "description": "The etag returned by the tool."78 }79 ]80 },81 "thumbnail_url": {82 "anyOf": [83 {84 "type": "string"85 },86 {87 "type": "null",88 "description": "The thumbnail url returned by the tool."89 }90 ]91 },92 "web_url": {93 "anyOf": [94 {95 "$ref": "#/properties/file/properties/thumbnail_url/anyOf/0",96 "description": "The web url returned by the tool."97 },98 {99 "type": "null",100 "description": "The web url returned by the tool."101 }102 ]103 }104 },105 "required": [106 "id",107 "provider",108 "name",109 "kind",110 "parent_id",111 "path",112 "mime_type",113 "size_bytes",114 "modified_at",115 "etag",116 "thumbnail_url",117 "web_url"118 ],119 "additionalProperties": false,120 "description": "Structured file details associated with this tool result."121 },122 "content": {123 "type": "string",124 "description": "Complete UTF-8 text or base64 content. More than 100000 encoded characters or 50 MiB returns limit_exceeded instead of partial content; use importExternalFile for larger files. Folders return invalid_input."125 },126 "content_encoding": {127 "type": "string",128 "enum": [129 "utf8",130 "base64"131 ]132 }133 },134 "required": [135 "file",136 "content",137 "content_encoding"138 ],139 "additionalProperties": false,140 "description": "Structured result returned by the read_external_file_content tool.",141 "$schema": "http://json-schema.org/draft-07/schema#"142}