Get a media upload URL
content_media_upload[writes flayr data · write scope] Step 1 of attaching a LOCAL file (video, image or audio) to a draft. Returns a single-use, short-lived uploadUrl. Step 2: POST the raw file bytes to it with the file's Content-Type, e.g. curl -X POST -H "Content-Type: video/mp4" --data-binary @clip.mp4 "<uploadUrl>" — the JSON response has a storageId. Step 3: pass it as videoStorageId or imageStorageId, or collect 2-20 ids into imageStorageIds for a carousel on content_create or content_update. content_media_get returns the public URL without a draft. For music-library audio, pass storageId to video_music_track_create instead. For media already on the web, skip this and pass videoUrl / imageUrl instead. Returns 413 when the account's storage is full. Was upload_media (still callable for one release).
(Wraps POST /api/v2/media/upload-url.)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "content_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||