veryfront__update_project_file_draft
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; defaults to the current project. |
branch_reference | string | No | Branch name or UUID. Omit for main; a missing selection is an error. Minimum length: 1. |
path | string | Yes | Source-file path or UUID in the selected project/branch. Minimum length: 1. |
content | string | Yes | Full pending file body. An empty string is valid. |
expected_draft_version | integer or null | No | Expected current draft sequence, not a committed version ID. 0 requires no prior draft; a stale value returns 409. Omit/null for an unconditional full-body replacement. |
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__update_project_file_draft",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 |
|---|---|---|---|
file_id | string | Yes | Deterministic source-file identity within the project. Format: uuid. |
entity_type | string | Yes | Canonical source-file type. Values: "page", "component", "function", "virtual_file". |
version | integer | Yes | Current pending draft sequence; commit/discard resets the pending sequence to 0. Minimum: 1. |
updated_at | string | Yes | Timestamp of the current full-body draft snapshot. |
path | string | Yes | Canonical source-file path, including when selected by UUID. |
content | string | Yes | Full pending body, including an empty string. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug; defaults to the current project."7 },8 "branch_reference": {9 "type": "string",10 "minLength": 1,11 "description": "Branch name or UUID. Omit for main; a missing selection is an error."12 },13 "path": {14 "type": "string",15 "minLength": 1,16 "description": "Source-file path or UUID in the selected project/branch."17 },18 "content": {19 "type": "string",20 "description": "Full pending file body. An empty string is valid."21 },22 "expected_draft_version": {23 "anyOf": [24 {25 "type": "integer",26 "minimum": 0,27 "maximum": 2147483647,28 "description": "Expected current draft sequence, not a committed version ID. 0 requires no prior draft; a stale value returns 409. Omit/null for an unconditional full-body replacement."29 },30 {31 "type": "null",32 "description": "Provide the expected draft version."33 }34 ],35 "description": "Expected current draft sequence, not a committed version ID. 0 requires no prior draft; a stale value returns 409. Omit/null for an unconditional full-body replacement."36 }37 },38 "required": [39 "path",40 "content"41 ],42 "additionalProperties": false,43 "description": "Arguments for the update_project_file_draft tool.",44 "$schema": "http://json-schema.org/draft-07/schema#"45}output-schema.json
1{2 "type": "object",3 "properties": {4 "file_id": {5 "type": "string",6 "format": "uuid",7 "description": "Deterministic source-file identity within the project."8 },9 "entity_type": {10 "type": "string",11 "enum": [12 "page",13 "component",14 "function",15 "virtual_file"16 ],17 "description": "Canonical source-file type."18 },19 "version": {20 "type": "integer",21 "minimum": 1,22 "description": "Current pending draft sequence; commit/discard resets the pending sequence to 0."23 },24 "updated_at": {25 "type": "string",26 "description": "Timestamp of the current full-body draft snapshot."27 },28 "path": {29 "type": "string",30 "description": "Canonical source-file path, including when selected by UUID."31 },32 "content": {33 "type": "string",34 "description": "Full pending body, including an empty string."35 }36 },37 "required": [38 "file_id",39 "entity_type",40 "version",41 "updated_at",42 "path",43 "content"44 ],45 "additionalProperties": false,46 "description": "Structured result returned by the update_project_file_draft tool.",47 "$schema": "http://json-schema.org/draft-07/schema#"48}