Attach media from URL
attach-mediaDownload an image or video from a public URL and attach it to a Postel draft. Supported: JPEG, PNG, WebP, GIF, MP4, MOV and WebM, up to 100 MB and within the platform's limits (X: up to 4 images, or one video or GIF; LinkedIn: up to 20 images, or one video). Scheduled and published posts cannot be changed.
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": {
"postId": "<postId>",
"url": "<url>"
},
"name": "attach-media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of an image or video | |
| postId | Yes | The draft post ID |