upload_media
Upload an image, video, or PDF to Sprout Social from a public URL or Google Drive link, returning a media ID for use in social posts.
Instructions
Upload an image, video or PDF document to Sprout Social via a public URL or Google Drive link.
Supports:
Direct public URLs (passed through to Sprout's API)
Google Drive URLs (file is downloaded server-side and uploaded via multipart). Supported formats: drive.google.com/file/d/{ID}/..., drive.google.com/open?id={ID}, drive.usercontent.google.com/download?id={ID}, drive.google.com/uc?export=download&id={ID}
Args: url: URL of the media file (public URL or Google Drive share link). Must be < 50MB. Google Drive files must have "Anyone with the link" sharing enabled.
Returns a media_id and _detected_media_type (PHOTO, VIDEO or DOCUMENT for PDFs) that can be used in create_post. PDFs become LinkedIn document posts. The media_id expires 24 hours after upload.
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": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |