veryfront__update_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". |
file_id | string | Yes | File ID from list_external_files whose entire content is replaced. Minimum length: 1. Maximum length: 1024. |
content | string | Yes | New content for the file: text, or base64 when content_encoding is base64 |
content_encoding | string | No | Encoding of content: "utf8" (default) or "base64" Values: "utf8", "base64". |
if_match | string | No | etag from list_external_files or get_external_file; the update is refused when the file changed Minimum length: 1. Maximum length: 1024. |
confirm | boolean | Yes | Must be true: this call replaces or deletes provider data. false refuses the call. |
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__update_external_file",7 "arguments": {8 "provider": "onedrive",9 "file_id": "example",10 "content": "example",11 "confirm": true12 }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 |
|---|---|---|---|
message | string | Yes | Agent-readable status message or rendered content for the external storage operation. |
file | object | Yes | The updated file. |
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 "file_id": {18 "type": "string",19 "minLength": 1,20 "maxLength": 1024,21 "description": "File ID from list_external_files whose entire content is replaced."22 },23 "content": {24 "type": "string",25 "description": "New content for the file: text, or base64 when content_encoding is base64"26 },27 "content_encoding": {28 "type": "string",29 "enum": [30 "utf8",31 "base64"32 ],33 "description": "Encoding of content: \"utf8\" (default) or \"base64\""34 },35 "if_match": {36 "type": "string",37 "minLength": 1,38 "maxLength": 1024,39 "pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$",40 "description": "etag from list_external_files or get_external_file; the update is refused when the file changed"41 },42 "confirm": {43 "type": "boolean",44 "description": "Must be true: this call replaces or deletes provider data. false refuses the call."45 }46 },47 "required": [48 "provider",49 "file_id",50 "content",51 "confirm"52 ],53 "additionalProperties": false,54 "$schema": "http://json-schema.org/draft-07/schema#",55 "description": "Arguments for the update_external_file tool."56}output-schema.json
1{2 "type": "object",3 "properties": {4 "message": {5 "type": "string",6 "description": "Agent-readable status message or rendered content for the external storage operation."7 },8 "file": {9 "type": "object",10 "properties": {11 "id": {12 "type": "string",13 "minLength": 1,14 "maxLength": 1024,15 "description": "Unique identifier for the returned record."16 },17 "name": {18 "type": "string",19 "description": "Human-readable name for the returned record."20 },21 "path": {22 "type": "string"23 },24 "mime_type": {25 "type": "string",26 "minLength": 127 },28 "size": {29 "type": "integer",30 "minimum": 0,31 "maximum": 900719925474099132 },33 "size_bytes": {34 "type": "integer",35 "minimum": 0,36 "maximum": 900719925474099137 },38 "is_folder": {39 "type": "boolean"40 },41 "kind": {42 "type": "string",43 "enum": [44 "file",45 "folder"46 ]47 },48 "modified_at": {49 "anyOf": [50 {51 "type": "string",52 "format": "date-time"53 },54 {55 "type": "null",56 "description": "The modified at returned by the tool."57 }58 ]59 },60 "thumbnail": {61 "type": "string"62 },63 "provider": {64 "type": "string",65 "enum": [66 "onedrive",67 "sharepoint",68 "drive"69 ]70 },71 "parent_id": {72 "anyOf": [73 {74 "$ref": "#/properties/file/properties/id"75 },76 {77 "type": "null",78 "description": "The parent id returned by the tool."79 }80 ]81 },82 "etag": {83 "anyOf": [84 {85 "type": "string",86 "minLength": 1,87 "maxLength": 1024,88 "pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$"89 },90 {91 "type": "null",92 "description": "The etag returned by the tool."93 }94 ]95 },96 "thumbnail_url": {97 "anyOf": [98 {99 "$ref": "#/properties/file/properties/thumbnail",100 "description": "The thumbnail url returned by the tool."101 },102 {103 "type": "null",104 "description": "The thumbnail url returned by the tool."105 }106 ]107 },108 "web_url": {109 "anyOf": [110 {111 "$ref": "#/properties/file/properties/thumbnail",112 "description": "The web url returned by the tool."113 },114 {115 "type": "null",116 "description": "The web url returned by the tool."117 }118 ]119 }120 },121 "required": [122 "id",123 "name",124 "path",125 "mime_type",126 "size",127 "size_bytes",128 "is_folder",129 "kind",130 "modified_at",131 "provider",132 "parent_id",133 "etag",134 "thumbnail_url",135 "web_url"136 ],137 "additionalProperties": false,138 "description": "The updated file."139 }140 },141 "required": [142 "message",143 "file"144 ],145 "additionalProperties": false,146 "description": "Structured result returned by the update_external_file tool.",147 "$schema": "http://json-schema.org/draft-07/schema#"148}