Upload media
upload_mediaUpload an image or video from a local path, URL, or data URL to get a media asset ID for use in create_post. Counts toward the workspace's monthly upload quota.
Instructions
Upload an image or video from a local file path, an http(s) URL, or a data: URL. Returns the media asset; pass its id in create_post mediaAssetIds. Counts against the workspace's monthly upload quota.
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": {
"source": "<source>"
},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Local file path, http(s) URL, or data: URL | |
| fileName | No | ||
| contentType | No | Inferred from the file extension or URL when omitted |