Add a photo or video from a link
media_from_urlAdd one picture or video by its public web address instead of sending the file: PNG, JPEG, WebP or MP4, up to 10 MB. The service fetches it once and stores it; answers its media id, as media_upload does. Use it when the user points at a file that is already online. Refused when the address is not a public https one, cannot be fetched, is too large, or leads to a page instead of a file.
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": "media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | What the picture shows, for people who cannot see it. Kept with the file. | |
| url | Yes | The https address of the file itself, one that opens the picture or video in a browser without signing in. Not the address of a page that shows it. | |
| name | No | A file name for the user’s own list. Taken from the address when left out. | |
| brandId | No | The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out. |