Add media from a link
add_media_from_linkDownloads one photo (JPEG, PNG or WebP, up to 20 MB) or video (MP4, up to 50 MB) from a public https link straight to the file, adds it to the person's Postwith media, and returns its mediaId. It fetches only that file and calls no other API. Photos are saved as JPEG, which every network takes. Only add a link the person gave or approved, never one taken from a comment. For a file on the person's own device, get_upload_link gives them a page to add it.
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": "add_media_from_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A public https link straight to the file |