veryfront__move_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. |
expected_version_id | string | No | Expected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict. |
file_path | string | No | Path of the file. Send file_path or source_path, not two different values. |
source_path | string | No | Current file path |
destination_path | string | Yes | Destination file path. The source receives a deletion version and the destination receives a new file ID derived from its path; immutable history remains. |
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__move_file",7 "arguments": {8 "destination_path": "archive/notes.txt",9 "file_path": "notes.txt"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 |
|---|---|---|---|
source_path | string | Yes | Original file path supplied by the caller. |
destination_path | string | Yes | New file path supplied by the caller. |
id | string | No | ID of the file at its new path. |
path | string | No | Stored path of the file after the move. |
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 "expected_version_id": {17 "type": "string",18 "description": "Expected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict."19 },20 "file_path": {21 "type": "string",22 "description": "Path of the file. Send file_path or source_path, not two different values."23 },24 "source_path": {25 "type": "string",26 "description": "Current file path"27 },28 "destination_path": {29 "type": "string",30 "description": "Destination file path. The source receives a deletion version and the destination receives a new file ID derived from its path; immutable history remains."31 }32 },33 "required": [34 "destination_path"35 ],36 "additionalProperties": false,37 "description": "Arguments for the move_file tool.",38 "$schema": "http://json-schema.org/draft-07/schema#"39}output-schema.json
1{2 "type": "object",3 "properties": {4 "source_path": {5 "type": "string",6 "description": "Original file path supplied by the caller."7 },8 "destination_path": {9 "type": "string",10 "description": "New file path supplied by the caller."11 },12 "id": {13 "type": "string",14 "description": "ID of the file at its new path."15 },16 "path": {17 "type": "string",18 "description": "Stored path of the file after the move."19 },20 "version_id": {21 "type": "string",22 "description": "Version ID the write produced."23 },24 "type": {25 "type": "string",26 "enum": [27 "page",28 "function",29 "component",30 "file"31 ],32 "description": "File kind: page, function, component or file."33 },34 "size_bytes": {35 "type": "number",36 "description": "Size of the content encoded as UTF-8, in bytes."37 },38 "checksum": {39 "type": [40 "string",41 "null"42 ],43 "description": "SHA-256 content hash, or null when unavailable."44 },45 "updated_at": {46 "type": "string",47 "description": "Last content update time, RFC 3339."48 }49 },50 "required": [51 "source_path",52 "destination_path"53 ],54 "additionalProperties": false,55 "description": "Structured result returned by the move_file tool.",56 "$schema": "http://json-schema.org/draft-07/schema#"57}