Import media from a URL
import_media_from_urlDownloads an image or video from a public URL into the workspace media library and returns a mediaId for publish_post and schedule_post. Takes a direct link to the file: JPEG, PNG, or WebP images up to 20 MiB, and MP4 or MOV videos up to 200 MiB. JPEG images up to 8 MiB are stored unchanged; other images are converted to JPEG with the long side reduced to 2,160 pixels or less. Web pages, including social media post pages, and links that require signing in are rejected. Larger videos go through create_media_upload. Each call stores a new copy, which is publicly accessible to anyone with its media URL. This does not publish a social media post.
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 | Direct link to a JPEG, PNG, or WebP image or an MP4 or MOV video file. | |
| workspaceId | No |