Upload media with an AI assistant
Hosted MCP supports media uploads and imports. These tools are not REST endpoints.
Import a public file
Ask your assistant to import a direct image or video URL. It uses import_media_from_url to save the file to your account's Media Library. Preview pages and private file links are not suitable.
Upload a local file
Your assistant's app must be able to read the file and send a multipart upload:
create_media_uploadreturnsuploadId,uploadToken, and upload instructions for the supplied file name, type, and size.- The app uploads the file to
upload.url, including every returnedupload.fieldsvalue and the file itself. complete_media_uploadverifies and saves the file usinguploadIdanduploadToken.
The temporary upload is not ready to use before completion succeeds. Supported file types are JPG, PNG, GIF, MP4, and MOV, up to 209,715,200 bytes (200 MiB).
Use the returned media record for later operations. Where supported, hosted MCP post tools accept its coverMediaId for a video cover. REST post routes currently reject that field.
See the tool reference and connection guide.