Import Media From URL
import_media_from_urlCopy a video or image from a public http(s) link into the user's oriiion account (server-side, up to 200MB video / 25MB image, 5 minute limit) and get a mediaId + permanent URL. Google Drive and Dropbox share links work when shared as 'Anyone with the link'. Links to private networks, localhost or cloud metadata addresses are refused. Accepted: video/mp4, video/quicktime, video/webm, image/jpeg, image/png, image/webp, image/gif (decided by the file's bytes). Output: { mediaId, status: 'ready', url, kind, contentType, sizeBytes, filename }.
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": {
"url": "<url>"
},
"name": "import_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of the video or image file | |
| filename | No | Optional filename to store it under |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Permanent public URL of the stored file | |
| kind | Yes | ||
| status | Yes | ||
| mediaId | Yes | Opaque id (med_…) — pass it to create_post_from_video | |
| filename | Yes | ||
| sizeBytes | Yes | Stored size in bytes | |
| contentType | Yes | Content type detected from the stored bytes |