Upload a small file inline
upload_mediaUpload a small image or video file to get a hosted public URL for attaching media to scheduled posts. For tiny files only; use prepare_media_upload for larger media.
Instructions
Upload a SMALL image/video inline and get a hosted public URL for schedule_post mediaUrls. Only practical for tiny files: it carries the whole file as base64, ~1.35x the byte size. For ANY real photo or video (over ~100KB) use prepare_media_upload + finalize_media_upload instead. Instagram and TikTok REQUIRE hosted media (they cannot take a text-only post). Once a post using the media publishes, the file is auto-deleted 30 days later. CAPABILITY: draft — creates content that cannot reach an audience on its own. Safe for a draft-only agent token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"contentType": "<contentType>",
"dataBase64": "<dataBase64>"
},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename incl. extension. | |
| dataBase64 | Yes | The file bytes, base64-encoded (no data: URI prefix). | |
| contentType | Yes | MIME type, e.g. image/png or video/mp4. |