Move file

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

FieldTypeRequiredDescription and constraints
project_referencestringNoProject ID or slug
refstringNoContent 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_idstringNoLegacy branch name or ID alias for ref=branch:<value>. Omit for main.
expected_version_idstringNoExpected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict.
file_pathstringNoPath of the file. Send file_path or source_path, not two different values.
source_pathstringNoCurrent file path
destination_pathstringYesDestination 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.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__move_file",
    "arguments": {
      "destination_path": "archive/notes.txt",
      "file_path": "notes.txt"
    }
  }
}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
source_pathstringYesOriginal file path supplied by the caller.
destination_pathstringYesNew file path supplied by the caller.
idstringNoID of the file at its new path.
pathstringNoStored path of the file after the move.
version_idstringNoVersion ID the write produced.
typestringNoFile kind: page, function, component or file. Values: "page", "function", "component", "file".
size_bytesnumberNoSize of the content encoded as UTF-8, in bytes.
checksumstring or nullNoSHA-256 content hash, or null when unavailable.
updated_atstringNoLast content update time, RFC 3339.

Full schemas

json
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "ref": {
      "type": "string",
      "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."
    },
    "branch_id": {
      "type": "string",
      "description": "Legacy branch name or ID alias for ref=branch:<value>. Omit for main."
    },
    "expected_version_id": {
      "type": "string",
      "description": "Expected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict."
    },
    "file_path": {
      "type": "string",
      "description": "Path of the file. Send file_path or source_path, not two different values."
    },
    "source_path": {
      "type": "string",
      "description": "Current file path"
    },
    "destination_path": {
      "type": "string",
      "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."
    }
  },
  "required": [
    "destination_path"
  ],
  "additionalProperties": false,
  "description": "Arguments for the move_file tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
json
{
  "type": "object",
  "properties": {
    "source_path": {
      "type": "string",
      "description": "Original file path supplied by the caller."
    },
    "destination_path": {
      "type": "string",
      "description": "New file path supplied by the caller."
    },
    "id": {
      "type": "string",
      "description": "ID of the file at its new path."
    },
    "path": {
      "type": "string",
      "description": "Stored path of the file after the move."
    },
    "version_id": {
      "type": "string",
      "description": "Version ID the write produced."
    },
    "type": {
      "type": "string",
      "enum": [
        "page",
        "function",
        "component",
        "file"
      ],
      "description": "File kind: page, function, component or file."
    },
    "size_bytes": {
      "type": "number",
      "description": "Size of the content encoded as UTF-8, in bytes."
    },
    "checksum": {
      "type": [
        "string",
        "null"
      ],
      "description": "SHA-256 content hash, or null when unavailable."
    },
    "updated_at": {
      "type": "string",
      "description": "Last content update time, RFC 3339."
    }
  },
  "required": [
    "source_path",
    "destination_path"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the move_file tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}