Upload a media file
upload_mediaUpload an image or video and get a media descriptor for schedule_post/edit_post's media. url: an https link fetched server-side, up to 200 MB, never passing through the conversation. Google Drive links work for files shared "Anyone with the link", not folders or Docs. data (base64 + mimeType) carries the bytes inline, capped at 5 MB. Truncated uploads are refused. One descriptor may go to ONE schedule_post covering many accounts. VIDEO COVERS: a custom cover is its own image upload, whose uploads/… gcsObjectName goes in cover.gcsObjectName on the video's descriptor (cover.offsetMs picks a frame instead).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL of an image or video (Google Drive share links accepted). | |
| data | No | Base64-encoded file bytes, up to 5 MB decoded. Needs mimeType. | |
| filePath | No | Absolute path to a local image or video file. Only over stdio, when this MCP server runs on the user's own machine; refused on the hosted server, where url or data carry the file. | |
| filename | No | Original file name (cosmetic) | |
| mimeType | No | MIME type (image/* or video/*). Required with data; with url or filePath only when it cannot be inferred | |
| workspace | No | Act in a team workspace: the owner's id from whoami's memberOfWorkspaces[].ownerId. Omit to act in your own workspace. | |
| declaredSize | No | Exact byte count of `data`; a mismatch is refused as truncated. |