Upload media
upload_mediaUpload an image or video before publishing to obtain a media ID, then pass that ID to publish_post; no content is posted and files are kept for 30 days.
Instructions
Upload one image or video ahead of publish_post and get its id. Use it for videos and other large files, one call per file, so no single call runs long; then pass the ids in publish_post media. Nothing is posted. Uploaded files are kept for 30 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | An absolute local file path or a public https URL. Images up to 20 MB: JPEG, PNG, WebP, GIF, AVIF, HEIC. Video up to 300 MB: MP4 or MOV. |