Upload a file to Luw.ai
luw_upload_fileUpload an image, video, or 3D file to Luw.ai storage and receive a shareable URL for use across Luw.ai tools, including re-hosting or permanent storage.
Instructions
Upload an image, video or 3D file to Luw.ai storage and get a URL usable by every Luw.ai tool. Rarely needed: all tools already accept local paths and data: URIs and upload them automatically. Useful to get a shareable URL, to re-host an image from a site Luw.ai can't reach, or to store a file permanently.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "luw_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Local file path, file:// URL, data: URI, or an https:// URL to copy into Luw.ai storage. | |
| persistent | No | Keep the file in your Luw.ai storage permanently. Default: temporary (not added to your library). | |
| persona_id | No | Persona to store a persistent file under (default: your first persona). |