Get media upload URLs
get_media_upload_urlsGet upload URLs for media files that are on the user's computer, so they can be used with schedule_posts. Input: workspace_key and filenames (each with its real extension).
For each filename it returns an upload_url and a hosted_url. Upload each file with an
HTTP PUT of its raw bytes to its upload_url, for example
curl -X PUT --upload-file <local file> "<upload_url>". Do not add x-amz-acl or any
other x-amz-* header; the URL is already signed and S3 rejects extra signed headers.
Then pass each hosted_url to schedule_posts as a media url, in carousel order.
The extension sets the media type. Supported images: png, jpeg, webp, svg. Supported videos: mp4, mpeg, webm, quicktime (.mov).
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": {
"workspace_key": "<workspace_key>",
"filenames": "<filenames>"
},
"name": "get_media_upload_urls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filenames | Yes | Local file names to upload, each with its real extension. | |
| workspace_key | Yes | Key of the workspace to act in. Call list_workspaces to see the workspaces you have access to and their keys. |