Get a media upload URL
upload_media[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 on create_content or update_content. For music-library audio, pass storageId to music_tracks_create instead. For media already on the web, skip this and pass videoUrl / imageUrl instead. Returns 413 when the account's storage is full.
(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": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||