veryfront__create_file
Requires project.files.write.
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 |
ref | string | No | 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_id | string | No | Legacy branch name or ID alias for ref=branch:<value>. Omit for main. |
path | string | Yes | File path to create in main or the selected branch. Atomically fails if the path already exists, including concurrent creation; it does not overwrite. |
content | string | Yes | File content |
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__create_file",7 "arguments": {8 "path": "example",9 "content": "example"10 }11 }12}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 |
|---|---|---|---|
id | string | No | Created file ID when supplied by the file store. |
path | string | Yes | Path of the created file. |
version_id | string | No | Version ID the write produced. |
type | string | No | File kind: page, function, component or file. Values: "page", "function", "component", "file". |
size_bytes | number | No | Size of the content encoded as UTF-8, in bytes. |
checksum | string or null | No | SHA-256 content hash, or null when unavailable. |
updated_at | string | No | Last content update time, RFC 3339. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug"7 },8 "ref": {9 "type": "string",10 "description": "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."11 },12 "branch_id": {13 "type": "string",14 "description": "Legacy branch name or ID alias for ref=branch:<value>. Omit for main."15 },16 "path": {17 "type": "string",18 "description": "File path to create in main or the selected branch. Atomically fails if the path already exists, including concurrent creation; it does not overwrite."19 },20 "content": {21 "type": "string",22 "description": "File content"23 }24 },25 "required": [26 "path",27 "content"28 ],29 "additionalProperties": false,30 "description": "Arguments for the create_file tool.",31 "$schema": "http://json-schema.org/draft-07/schema#"32}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Created file ID when supplied by the file store."7 },8 "path": {9 "type": "string",10 "description": "Path of the created file."11 },12 "version_id": {13 "type": "string",14 "description": "Version ID the write produced."15 },16 "type": {17 "type": "string",18 "enum": [19 "page",20 "function",21 "component",22 "file"23 ],24 "description": "File kind: page, function, component or file."25 },26 "size_bytes": {27 "type": "number",28 "description": "Size of the content encoded as UTF-8, in bytes."29 },30 "checksum": {31 "type": [32 "string",33 "null"34 ],35 "description": "SHA-256 content hash, or null when unavailable."36 },37 "updated_at": {38 "type": "string",39 "description": "Last content update time, RFC 3339."40 }41 },42 "required": [43 "path"44 ],45 "additionalProperties": false,46 "description": "Structured result returned by the create_file tool.",47 "$schema": "http://json-schema.org/draft-07/schema#"48}