Upload Media
upload_mediaUpload media files for use in posts. Supports two modes:
URLs: pass public image/video URLs — the server downloads and re-uploads them.
Files: pass base64-encoded file data directly (e.g. when the user attaches an image in the conversation). Returns mediaUrls ready to pass into create_post. The user does NOT need to see the returned URLs — just pass them to create_post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Public URLs of images or videos to upload (e.g. ["https://example.com/photo.jpg"]) | |
| files | No | Direct file uploads as base64. Use this when the user attaches/pastes an image or video in the conversation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | An object with uploaded (array of { publicUrl, key } per file) and mediaUrls (the public URLs ready to pass to create_post). |