veryfront__update_external_fileAccess
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
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "veryfront__update_external_file",
"arguments": {
"provider": "onedrive",
"file_id": "example",
"content": "example",
"confirm": true
}
}
}
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 |
|---|---|---|---|
message | string | Yes | Agent-readable status message or rendered content for the external storage operation. |
file | object | Yes | The updated file. |
Full schemas
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection."
},
"provider": {
"type": "string",
"enum": [
"onedrive",
"sharepoint",
"drive"
],
"description": "Storage provider accessed through the caller's own personal connection. A shared project connection is not used."
},
"file_id": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "File ID from list_external_files whose entire content is replaced."
},
"content": {
"type": "string",
"description": "New content for the file: text, or base64 when content_encoding is base64"
},
"content_encoding": {
"type": "string",
"enum": [
"utf8",
"base64"
],
"description": "Encoding of content: \"utf8\" (default) or \"base64\""
},
"if_match": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$",
"description": "etag from list_external_files or get_external_file; the update is refused when the file changed"
},
"confirm": {
"type": "boolean",
"description": "Must be true: this call replaces or deletes provider data. false refuses the call."
}
},
"required": [
"provider",
"file_id",
"content",
"confirm"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Arguments for the update_external_file tool."
}
{
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Agent-readable status message or rendered content for the external storage operation."
},
"file": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Unique identifier for the returned record."
},
"name": {
"type": "string",
"description": "Human-readable name for the returned record."
},
"path": {
"type": "string"
},
"mime_type": {
"type": "string",
"minLength": 1
},
"size": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"size_bytes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"is_folder": {
"type": "boolean"
},
"kind": {
"type": "string",
"enum": [
"file",
"folder"
]
},
"modified_at": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null",
"description": "The modified at returned by the tool."
}
]
},
"thumbnail": {
"type": "string"
},
"provider": {
"type": "string",
"enum": [
"onedrive",
"sharepoint",
"drive"
]
},
"parent_id": {
"anyOf": [
{
"$ref": "#/properties/file/properties/id"
},
{
"type": "null",
"description": "The parent id returned by the tool."
}
]
},
"etag": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 1024,
"pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$"
},
{
"type": "null",
"description": "The etag returned by the tool."
}
]
},
"thumbnail_url": {
"anyOf": [
{
"$ref": "#/properties/file/properties/thumbnail",
"description": "The thumbnail url returned by the tool."
},
{
"type": "null",
"description": "The thumbnail url returned by the tool."
}
]
},
"web_url": {
"anyOf": [
{
"$ref": "#/properties/file/properties/thumbnail",
"description": "The web url returned by the tool."
},
{
"type": "null",
"description": "The web url returned by the tool."
}
]
}
},
"required": [
"id",
"name",
"path",
"mime_type",
"size",
"size_bytes",
"is_folder",
"kind",
"modified_at",
"provider",
"parent_id",
"etag",
"thumbnail_url",
"web_url"
],
"additionalProperties": false,
"description": "The updated file."
}
},
"required": [
"message",
"file"
],
"additionalProperties": false,
"description": "Structured result returned by the update_external_file tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}