Upload media from URL
upload_media_from_urlUploads a file from a publicly reachable URL. Supported extensions: jpg, jpeg, png, gif, webp, heic, avif, pdf, srt, mp4, mov, mpeg, webm, avi, mp3. Maximum size 5 GB. Returns media_id immediately while the file is downloaded and processed in the background. Poll get_media_upload_status until status is completed before using the media_id in create_post or update_post. For a local file without a public URL use init_media_upload instead.
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": {
"file_url": "<file_url>"
},
"name": "upload_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | Yes | Publicly reachable URL of the file to upload. | |
| file_name | No | File name with extension, e.g. photo.jpg. Required when the URL path has no file extension. |