Import media from a link
import_mediaDownload an image (JPEG, PNG, WebP, GIF) or video (MP4, MOV) from a public http(s) link into Postmately. Returns the media id to pass to create_post. Importing and publishing finished media do not spend generation credits.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public link to the file |