veryfront__create_upload_from_url

Download a file from an HTTP(S) URL on the server and store it as a project upload. Requires project.uploads.write.

Risk: mutating.

Arguments

NameTypeRequiredDescription
urlstringYesHTTP(S) URL to download. Private and internal addresses are refused; at most 5 redirects are followed.
pathstringYesProject-relative destination path, for example attachments/invoice.pdf. Do not URL-encode it.
headersobjectRequest headers for the download, for example Authorization. Hop-by-hop headers are rejected.
content_typestringMIME type override. Defaults to the response Content-Type, else application/octet-stream.
expected_size_bytesintegerExact size in bytes the download must have; a different size fails the import.
max_bytesintegerLargest download accepted, in bytes. Defaults to 104857600 and is capped at 536870912.
project_referencestringProject UUID, slug or configured domain; optional when the selected context supplies a project.

Call it

JSON
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__create_upload_from_url",    "arguments": {      "url": "<url>",      "path": "<path>"    }  }}