Upload media from a URL
upload_mediaCopies a public image (JPEG, PNG, WebP, GIF; 10 MB max) or video (MP4, MOV, WebM; 100 MB max) into Broadcast and returns its key. Give an image its alt text here: posts using the key send it. Call it before schedule_post or update_post whenever the post has media, then pass the key in media; a plain URL is not accepted there. Required for Instagram and TikTok, which refuse text-only posts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alternative text describing the image for people who cannot see it. Kept with the file: every post using this key without its own `alt` sends it (bluesky, mastodon, x, linkedin, threads, facebook, instagram). | |
| url | Yes | Public URL of an image (JPEG, PNG, WebP, GIF, 10 MB max) or video (MP4, MOV, WebM, 100 MB max) to copy into Broadcast. | |
| sourceUrl | No | Optional https address of the conversation or session making this call (for instance a Claude Code session link), shown as a link in the user's activity log. Omit it when unknown; never invent one. |