veryfront__create_upload_from_url
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
| Field | Type | Required | Description and constraints |
|---|---|---|---|
url | string | Yes | HTTP(S) URL to download. Private and internal addresses are refused; at most 5 redirects are followed. Format: uri. |
path | string | Yes | Project-relative destination path, for example attachments/invoice.pdf. Do not URL-encode it. |
headers | object | No | Request headers for the download, for example Authorization. Hop-by-hop headers are rejected. |
content_type | string | No | MIME type override. Defaults to the response Content-Type, else application/octet-stream. Minimum length: 1. |
expected_size_bytes | integer | No | Exact size in bytes the download must have; a different size fails the import. |
max_bytes | integer | No | Largest download accepted, in bytes. Defaults to 104857600 and is capped at 536870912. Maximum: 536870912. |
project_reference | string | No | Project 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
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__create_upload_from_url",7 "arguments": {8 "url": "https://example.com",9 "path": "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 |
|---|---|---|---|
id | string | Yes | Upload UUID. |
path | string | Yes | Project-relative upload path, without a leading slash. |
file_name | string | Yes | File name from the upload record. |
content_type | string or null | Yes | Stored MIME type, or null when unspecified. |
size_bytes | number | Yes | File size in bytes. |
url | string or null | Yes | API URL that serves the upload; access depends on its visibility. |
status | string | Yes | pending until the bytes are stored, active when available, or failed. Values: "pending", "active", "failed". |
visibility | string | Yes | Effective visibility of the upload. Values: "project", "public", "private". |
created_at | string | Yes | Creation time, RFC 3339. |
updated_at | string | Yes | Last update time, RFC 3339. |
deleted_at | string or null | Yes | Soft-deletion time, RFC 3339, or null for an upload that is not deleted. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "url": {5 "type": "string",6 "format": "uri",7 "description": "HTTP(S) URL to download. Private and internal addresses are refused; at most 5 redirects are followed."8 },9 "path": {10 "type": "string",11 "description": "Project-relative destination path, for example attachments/invoice.pdf. Do not URL-encode it."12 },13 "headers": {14 "type": "object",15 "additionalProperties": {16 "type": "string",17 "description": "Additional structured values supplied to the tool."18 },19 "description": "Request headers for the download, for example Authorization. Hop-by-hop headers are rejected."20 },21 "content_type": {22 "type": "string",23 "minLength": 1,24 "description": "MIME type override. Defaults to the response Content-Type, else application/octet-stream."25 },26 "expected_size_bytes": {27 "type": "integer",28 "exclusiveMinimum": 0,29 "description": "Exact size in bytes the download must have; a different size fails the import."30 },31 "max_bytes": {32 "type": "integer",33 "exclusiveMinimum": 0,34 "maximum": 536870912,35 "description": "Largest download accepted, in bytes. Defaults to 104857600 and is capped at 536870912."36 },37 "project_reference": {38 "type": "string",39 "description": "Project UUID, slug or configured domain; optional when the selected context supplies a project."40 }41 },42 "required": [43 "url",44 "path"45 ],46 "additionalProperties": false,47 "description": "Arguments for the create_upload_from_url tool.",48 "$schema": "http://json-schema.org/draft-07/schema#"49}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Upload UUID."7 },8 "path": {9 "type": "string",10 "description": "Project-relative upload path, without a leading slash."11 },12 "file_name": {13 "type": "string",14 "description": "File name from the upload record."15 },16 "content_type": {17 "type": [18 "string",19 "null"20 ],21 "description": "Stored MIME type, or null when unspecified."22 },23 "size_bytes": {24 "type": "number",25 "description": "File size in bytes."26 },27 "url": {28 "type": [29 "string",30 "null"31 ],32 "description": "API URL that serves the upload; access depends on its visibility."33 },34 "status": {35 "type": "string",36 "enum": [37 "pending",38 "active",39 "failed"40 ],41 "description": "pending until the bytes are stored, active when available, or failed."42 },43 "visibility": {44 "type": "string",45 "enum": [46 "project",47 "public",48 "private"49 ],50 "description": "Effective visibility of the upload."51 },52 "created_at": {53 "type": "string",54 "description": "Creation time, RFC 3339."55 },56 "updated_at": {57 "type": "string",58 "description": "Last update time, RFC 3339."59 },60 "deleted_at": {61 "type": [62 "string",63 "null"64 ],65 "description": "Soft-deletion time, RFC 3339, or null for an upload that is not deleted."66 }67 },68 "required": [69 "id",70 "path",71 "file_name",72 "content_type",73 "size_bytes",74 "url",75 "status",76 "visibility",77 "created_at",78 "updated_at",79 "deleted_at"80 ],81 "additionalProperties": false,82 "description": "Structured result returned by the create_upload_from_url tool.",83 "$schema": "http://json-schema.org/draft-07/schema#"84}