Create external file

Create external file. Requires project.integrations.connect.

Arguments

  • project_referencestring

    Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.

  • providerstringrequired

    Storage provider accessed through the caller's own personal connection. A shared project connection is not used. One of onedrive, sharepoint, drive.

  • folder_idstring · min length 1 · max length 1024required

    Parent folder ID from list_external_files, or "root" for the provider root

  • namestring · min length 1 · max length 255required

    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 "/".

  • contentstring · max length 10000000required

    File content, at most 10000000 characters

  • content_encodingstring

    Encoding of content: "utf8" (default) for text, "base64" for binary bytes One of utf8, base64.

  • mime_typestring · min length 3 · max length 255

    MIME type; defaults from the name, else text/plain (utf8) or application/octet-stream (base64)

  • idempotency_keystring · min length 1 · max length 128

    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.

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__create_external_file",    "arguments": {      "provider": "onedrive",      "folder_id": "string",      "name": "string",      "content": "string"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"string\",\"provider\":\"onedrive\",\"name\":\"string\",\"kind\":\"file\",\"parent_id\":\"string\",\"path\":\"string\",\"mime_type\":\"string\",\"size_bytes\":0,\"modified_at\":\"2026-01-01T00:00:00Z\",\"etag\":\"string\",\"thumbnail_url\":\"string\",\"web_url\":\"string\"}"      }    ],    "structuredContent": {      "id": "string",      "provider": "onedrive",      "name": "string",      "kind": "file",      "parent_id": "string",      "path": "string",      "mime_type": "string",      "size_bytes": 0,      "modified_at": "2026-01-01T00:00:00Z",      "etag": "string",      "thumbnail_url": "string",      "web_url": "string"    }  }}

The tool ran; its output is result.structuredContent.