Create upload

veryfront__create_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
pathstringYesProject-relative destination path, for example assets/image.png. Leading slashes are stripped.
content_typestringNoMIME type; it becomes a required header of the PUT request.
size_bytesintegerYesFile size in bytes, checked against the storage quota. Maximum: 9007199254740991.
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.

request.json
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__create_upload",    "arguments": {      "path": "example",      "size_bytes": 1    }  }}

Result

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

FieldTypeRequiredDescription and constraints
upload_idstringYesUUID of the pending upload.
pathstringYesProject-relative path of the upload.
upload_urlstringYesShort-lived signed URL for the PUT request that sends the bytes.
required_headersobjectYesHeaders the PUT request must send.
statusstringYesAlways pending until the bytes are stored. Value: "pending".

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "path": {      "type": "string",      "description": "Project-relative destination path, for example assets/image.png. Leading slashes are stripped."    },    "content_type": {      "type": "string",      "description": "MIME type; it becomes a required header of the PUT request."    },    "size_bytes": {      "type": "integer",      "exclusiveMinimum": 0,      "maximum": 9007199254740991,      "description": "File size in bytes, checked against the storage quota."    },    "project_reference": {      "type": "string",      "description": "Project UUID, slug or configured domain; optional when the selected context supplies a project."    }  },  "required": [    "path",    "size_bytes"  ],  "additionalProperties": false,  "description": "Arguments for the create_upload tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "upload_id": {      "type": "string",      "description": "UUID of the pending upload."    },    "path": {      "type": "string",      "description": "Project-relative path of the upload."    },    "upload_url": {      "type": "string",      "description": "Short-lived signed URL for the PUT request that sends the bytes."    },    "required_headers": {      "type": "object",      "additionalProperties": {        "type": "string",        "description": "Additional structured values associated with this result."      },      "description": "Headers the PUT request must send."    },    "status": {      "type": "string",      "const": "pending",      "description": "Always pending until the bytes are stored."    }  },  "required": [    "upload_id",    "path",    "upload_url",    "required_headers",    "status"  ],  "additionalProperties": false,  "description": "Structured result returned by the create_upload tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}