Update external file. Requires project.integrations.connect.
Arguments
project_referencestringProject ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.
providerstringrequiredStorage provider accessed through the caller's own personal connection. A shared project connection is not used. One of
onedrive,sharepoint,drive.file_idstring · min length 1 · max length 1024requiredFile ID from list_external_files whose entire content is replaced.
contentstringrequiredNew content for the file: text, or base64 when content_encoding is base64
content_encodingstringEncoding of content: "utf8" (default) or "base64" One of
utf8,base64.if_matchstring · min length 1 · max length 1024etag from list_external_files or get_external_file; the update is refused when the file changed
confirmbooleanrequiredMust be true: this call replaces or deletes provider data. false refuses the call.
Responses
curl -X POST -N "https://api.veryfront.com/mcp" \ -H "Authorization: Bearer $VERYFRONT_API_KEY" \ -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "veryfront__update_external_file", "arguments": { "provider": "onedrive", "file_id": "string", "content": "string", "confirm": false } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"message\":\"string\",\"file\":{\"id\":\"string\",\"name\":\"string\",\"path\":\"string\",\"mime_type\":\"string\",\"size\":0,\"size_bytes\":0,\"is_folder\":false,\"kind\":\"file\",\"modified_at\":\"2026-01-01T00:00:00Z\",\"thumbnail\":\"string\",\"provider\":\"onedrive\",\"parent_id\":\"string\",\"etag\":\"string\",\"thumbnail_url\":\"string\",\"web_url\":\"string\"}}" } ], "structuredContent": { "message": "string", "file": { "id": "string", "name": "string", "path": "string", "mime_type": "string", "size": 0, "size_bytes": 0, "is_folder": false, "kind": "file", "modified_at": "2026-01-01T00:00:00Z", "thumbnail": "string", "provider": "onedrive", "parent_id": "string", "etag": "string", "thumbnail_url": "string", "web_url": "string" } } }}The tool ran; its output is result.structuredContent.