Create file

Create a file. Requires project.files.write.

Arguments

  • project_referencestring

    Project ID or slug

  • refstring

    Content selector: main or branch:<name-or-id>. Omit for main. Release and environment snapshots are read-only. Supplied aliases must name the same content.

  • branch_idstring

    Legacy branch name or ID alias for ref=branch:<value>. Omit for main.

  • pathstringrequired

    File path to create in main or the selected branch. Atomically fails if the path already exists, including concurrent creation; it does not overwrite.

  • contentstringrequired

    File content

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_file",    "arguments": {      "path": "string",      "content": "string"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"string\",\"path\":\"string\",\"version_id\":\"string\",\"type\":\"page\",\"size_bytes\":0,\"checksum\":\"string\",\"updated_at\":\"string\"}"      }    ],    "structuredContent": {      "id": "string",      "path": "string",      "version_id": "string",      "type": "page",      "size_bytes": 0,      "checksum": "string",      "updated_at": "string"    }  }}

The tool ran; its output is result.structuredContent.