Restore upload

veryfront__restore_upload

Requires project.uploads.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
upload_referencestringNoUpload UUID selects that exact row; raw project-relative path selects an active row first, otherwise latest deletion then descending UUID. Active rows are rejected. No deletion-age cutoff is enforced; stored content availability is not checked. Requires upload write and path edit access. Do not URL-encode MCP values. Minimum length: 1.
upload_idstringNoSend upload_reference or this earlier spelling of it, not two different values. Minimum length: 1.
project_referencestringNoProject UUID, slug or configured domain; optional when the selected context supplies a project.

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__restore_upload",
    "arguments": {}
  }
}

Result

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

FieldTypeRequiredDescription and constraints
idstringYesUpload UUID.
pathstringYesProject-relative upload path.
file_namestringYesFile name from the upload record.
content_typestring or nullYesStored MIME type, or null when unspecified.
size_bytesnumberYesFile size in bytes.
urlstring or nullYesAPI URL that serves the upload; access depends on its visibility.
statusstringYespending, active or failed.
visibilitystringYesEffective visibility of the upload. Values: "project", "public", "private".
created_atstringYesCreation time.
updated_atstringYesLast update time.
deleted_atstring or nullYesSoft-deletion time, or null for an upload that is not deleted.
restoredbooleanYesAlways true.

Full schemas

json
{
  "type": "object",
  "properties": {
    "upload_reference": {
      "type": "string",
      "minLength": 1,
      "description": "Upload UUID selects that exact row; raw project-relative path selects an active row first, otherwise latest deletion then descending UUID. Active rows are rejected. No deletion-age cutoff is enforced; stored content availability is not checked. Requires upload write and path edit access. Do not URL-encode MCP values."
    },
    "upload_id": {
      "type": "string",
      "minLength": 1,
      "description": "Send upload_reference or this earlier spelling of it, not two different values."
    },
    "project_reference": {
      "type": "string",
      "description": "Project UUID, slug or configured domain; optional when the selected context supplies a project."
    }
  },
  "additionalProperties": false,
  "description": "Arguments for the restore_upload tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Upload UUID."
    },
    "path": {
      "type": "string",
      "description": "Project-relative upload path."
    },
    "file_name": {
      "type": "string",
      "description": "File name from the upload record."
    },
    "content_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stored MIME type, or null when unspecified."
    },
    "size_bytes": {
      "type": "number",
      "description": "File size in bytes."
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "API URL that serves the upload; access depends on its visibility."
    },
    "status": {
      "type": "string",
      "description": "pending, active or failed."
    },
    "visibility": {
      "type": "string",
      "enum": [
        "project",
        "public",
        "private"
      ],
      "description": "Effective visibility of the upload."
    },
    "created_at": {
      "type": "string",
      "description": "Creation time."
    },
    "updated_at": {
      "type": "string",
      "description": "Last update time."
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Soft-deletion time, or null for an upload that is not deleted."
    },
    "restored": {
      "type": "boolean",
      "description": "Always true."
    }
  },
  "required": [
    "id",
    "path",
    "file_name",
    "content_type",
    "size_bytes",
    "url",
    "status",
    "visibility",
    "created_at",
    "updated_at",
    "deleted_at",
    "restored"
  ],
  "additionalProperties": false,
  "description": "Structured restore upload output schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}