upload_media
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 in the request, which is ~1.35x the byte size. For ANY real photo or video (anything over ~100KB) use prepare_media_upload + finalize_media_upload instead, that flow streams the bytes straight to storage and does not force a huge payload through this call. Instagram and TikTok REQUIRE hosted media (they cannot take a text-only post). Note: 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, e.g. "day01.mp4", the extension is preserved on the stored object. | |
| dataBase64 | Yes | The file bytes, base64-encoded (no data: URI prefix). | |
| contentType | Yes | MIME type, e.g. image/png or video/mp4. |