Create media upload
create_media_uploadStages local media (video, image, or document) for publishing: returns upload_id and temporary upload_url, then requires PUT of raw bytes before completing the upload.
Instructions
Step 1 of staging a local file for publishing. Returns upload_id and a short-lived upload_url; the caller must then PUT the raw file bytes to upload_url (same Content-Type and size as declared here) and call complete_media_upload. Only useful when this client can perform the HTTP PUT itself (for example a coding agent with a shell); the model cannot read chat attachments or /mnt/data paths, so for those ask the user for a public HTTPS URL or send them to https://app.upload-post.com. Staging media is deleted after 24 hours; scheduled posts are safe because upload_video copies the media into durable scheduler storage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Optional source label identifying the calling client, e.g. mcp_studio. | |
| filename | Yes | Original filename, e.g. clip.mp4. | |
| mediaType | No | Kind of media being uploaded. | video |
| contentType | Yes | MIME type, e.g. video/mp4. | |
| contentLength | Yes | File size in bytes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |