Upload a file to Relay
upload_fileHosts an image, video, or audio file on Relay and returns a URL for use in run_model *_url inputs, with configurable retention.
Instructions
Hosts an image, video or audio file on Relay and returns its url: pass that url to any *_url input of run_model. Give exactly one of path (local server only, ≤ 100 MB), base64 (≤ 4 MB) or url (a public link Relay copies). retention: relay1h (default, free within a daily quota) or a media_storage SKU from get_pricing. Needs a Relay credential.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) link to copy onto Relay. | |
| path | No | Local file path (stdio server only; the hosted server cannot read your disk). Max 100 MB. | |
| slot | No | true: get a single-use upload URL (10 minutes): run the curl line in your shell on the local file, or open open_url in a browser and pick the file; either prints the hosted link. | |
| base64 | No | File content as base64 or a data: URI, at most 4 MB decoded. Larger files: pass url. | |
| filename | No | File name to record (defaults to the path's base name). | |
| retention | No | How long the link lives: relay1h (default, free within a daily quota) or a media_storage SKU from get_pricing (relay1d, relay7d, …). |