veryfront__create_external_file
Requires project.integrations.connect.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug. Requires project.integrations.connect 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". |
folder_id | string | Yes | Parent folder ID from list_external_files, or "root" for the provider root Minimum length: 1. Maximum length: 1024. |
name | string | Yes | Creates a new file without replacing an existing one. OneDrive and SharePoint return conflict for an existing name; Google Drive creates a new item with the same name. File name, such as "report.md"; no "/". Minimum length: 1. Maximum length: 255. |
content | string | Yes | File content, at most 10000000 characters Maximum length: 10000000. |
content_encoding | string | No | Encoding of content: "utf8" (default) for text, "base64" for binary bytes Values: "utf8", "base64". |
mime_type | string | No | MIME type; defaults from the name, else text/plain (utf8) or application/octet-stream (base64) Minimum length: 3. Maximum length: 255. |
idempotency_key | string | No | Optional key of 1-128 characters without whitespace. Retrying with the same key and arguments within 24 hours returns the first result instead of creating another item; the same key with different arguments is refused. Minimum length: 1. Maximum length: 128. |
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__create_external_file",7 "arguments": {8 "provider": "onedrive",9 "folder_id": "example",10 "name": "example",11 "content": "example"12 }13 }14}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 |
|---|---|---|---|
id | string | Yes | Unique identifier for the returned record. Minimum length: 1. Maximum length: 1024. |
provider | string | Yes | Values: "onedrive", "sharepoint", "drive". |
name | string | Yes | Human-readable name for the returned record. |
kind | string | Yes | Values: "file", "folder". |
parent_id | string or null | Yes | |
path | string | Yes | |
mime_type | string | Yes | Minimum length: 1. |
size_bytes | integer | Yes | Minimum: 0. Maximum: 9007199254740991. |
modified_at | string or null | Yes | |
etag | string or null | Yes | |
thumbnail_url | string or null | Yes | |
web_url | string or null | Yes |
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.connect 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 "folder_id": {18 "type": "string",19 "minLength": 1,20 "maxLength": 1024,21 "description": "Parent folder ID from list_external_files, or \"root\" for the provider root"22 },23 "name": {24 "type": "string",25 "minLength": 1,26 "maxLength": 255,27 "pattern": "^[^/]*$",28 "description": "Creates a new file without replacing an existing one. OneDrive and SharePoint return conflict for an existing name; Google Drive creates a new item with the same name. File name, such as \"report.md\"; no \"/\"."29 },30 "content": {31 "type": "string",32 "maxLength": 10000000,33 "description": "File content, at most 10000000 characters"34 },35 "content_encoding": {36 "type": "string",37 "enum": [38 "utf8",39 "base64"40 ],41 "description": "Encoding of content: \"utf8\" (default) for text, \"base64\" for binary bytes"42 },43 "mime_type": {44 "type": "string",45 "minLength": 3,46 "maxLength": 255,47 "description": "MIME type; defaults from the name, else text/plain (utf8) or application/octet-stream (base64)"48 },49 "idempotency_key": {50 "type": "string",51 "minLength": 1,52 "maxLength": 128,53 "pattern": "^\\S+$",54 "description": "Optional key of 1-128 characters without whitespace. Retrying with the same key and arguments within 24 hours returns the first result instead of creating another item; the same key with different arguments is refused."55 }56 },57 "required": [58 "provider",59 "folder_id",60 "name",61 "content"62 ],63 "additionalProperties": false,64 "$schema": "http://json-schema.org/draft-07/schema#",65 "description": "Arguments for the create_external_file tool."66}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "minLength": 1,7 "maxLength": 1024,8 "description": "Unique identifier for the returned record."9 },10 "provider": {11 "type": "string",12 "enum": [13 "onedrive",14 "sharepoint",15 "drive"16 ]17 },18 "name": {19 "type": "string",20 "description": "Human-readable name for the returned record."21 },22 "kind": {23 "type": "string",24 "enum": [25 "file",26 "folder"27 ]28 },29 "parent_id": {30 "anyOf": [31 {32 "$ref": "#/properties/id"33 },34 {35 "type": "null",36 "description": "The parent id returned by the tool."37 }38 ]39 },40 "path": {41 "type": "string"42 },43 "mime_type": {44 "type": "string",45 "minLength": 146 },47 "size_bytes": {48 "type": "integer",49 "minimum": 0,50 "maximum": 900719925474099151 },52 "modified_at": {53 "anyOf": [54 {55 "type": "string",56 "format": "date-time"57 },58 {59 "type": "null",60 "description": "The modified at returned by the tool."61 }62 ]63 },64 "etag": {65 "anyOf": [66 {67 "type": "string",68 "minLength": 1,69 "maxLength": 1024,70 "pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$"71 },72 {73 "type": "null",74 "description": "The etag returned by the tool."75 }76 ]77 },78 "thumbnail_url": {79 "anyOf": [80 {81 "type": "string"82 },83 {84 "type": "null",85 "description": "The thumbnail url returned by the tool."86 }87 ]88 },89 "web_url": {90 "anyOf": [91 {92 "$ref": "#/properties/thumbnail_url/anyOf/0",93 "description": "The web url returned by the tool."94 },95 {96 "type": "null",97 "description": "The web url returned by the tool."98 }99 ]100 }101 },102 "required": [103 "id",104 "provider",105 "name",106 "kind",107 "parent_id",108 "path",109 "mime_type",110 "size_bytes",111 "modified_at",112 "etag",113 "thumbnail_url",114 "web_url"115 ],116 "additionalProperties": false,117 "description": "Structured result returned by the create_external_file tool.",118 "$schema": "http://json-schema.org/draft-07/schema#"119}